STINNER Victor <vstin...@redhat.com> added the comment:
It's impressive *and* scary that such 13 years old bug only show up today... I modified the GC threshold in the site module with this patch: diff --git a/Lib/site.py b/Lib/site.py index ad1146332b..68cdf105b1 100644 --- a/Lib/site.py +++ b/Lib/site.py @@ -557,6 +557,10 @@ def main(): This function is called automatically when this module is imported, unless the python interpreter was started with the -S flag. """ + import gc, random + n = random.randint(5, 100) + gc.set_threshold(n) + global ENABLE_USER_SITE orig_path = sys.path[:] Running the test suite with this patch doesn't catch the bug :-( $ ./python -m test -j0 -r -u all,-gui ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35961> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com