Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3.6
Changeset: r93889:6379ab551ae1
Date: 2018-02-25 22:01 +0100
http://bitbucket.org/pypy/pypy/changeset/6379ab551ae1/
Log: Trigger gc collection after "del", to unblock the test.
diff --git a/lib-python/3/test/test_concurrent_futures.py
b/lib-python/3/test/test_concurrent_futures.py
--- a/lib-python/3/test/test_concurrent_futures.py
+++ b/lib-python/3/test/test_concurrent_futures.py
@@ -161,6 +161,7 @@
executor.map(abs, range(-5, 5))
threads = executor._threads
del executor
+ test.support.gc_collect()
for t in threads:
self.assertRegex(t.name, r'^SpecialPool_[0-4]$')
@@ -171,6 +172,7 @@
executor.map(abs, range(-5, 5))
threads = executor._threads
del executor
+ test.support.gc_collect()
for t in threads:
# We don't particularly care what the default name is, just that
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit