Author: Armin Rigo <[email protected]>
Branch: py3.6
Changeset: r96890:f98216915c7a
Date: 2019-07-01 13:23 +0200
http://bitbucket.org/pypy/pypy/changeset/f98216915c7a/
Log: hg merge 53fb62020937 (step-by-step merging with default)
diff --git a/pypy/module/thread/test/test_local.py
b/pypy/module/thread/test/test_local.py
--- a/pypy/module/thread/test/test_local.py
+++ b/pypy/module/thread/test/test_local.py
@@ -5,6 +5,7 @@
def test_local_1(self):
import _thread
+ import gc
from _thread import _local as tlsobject
freed = []
class X:
@@ -34,8 +35,9 @@
_thread.start_new_thread(f, (i,))
self.waitfor(lambda: len(ok) == 20, delay=3)
assert ok == 20*[True] # see stdout/stderr for failures in the threads
+ gc.collect(); gc.collect(); gc.collect()
- self.waitfor(lambda: len(freed) >= 40)
+ self.waitfor(lambda: len(freed) >= 40, delay=20)
assert len(freed) == 40
# in theory, all X objects should have been freed by now. Note that
# Python's own thread._local objects suffer from the very same "bug"
that
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit