[pypy-svn] pypy default: This test relies on a weakref callback.
amauryfa
commits-noreply at bitbucket.org
Thu Jan 20 08:43:18 CET 2011
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch:
Changeset: r40961:fc53faee44c7
Date: 2011-01-20 08:41 +0100
http://bitbucket.org/pypy/pypy/changeset/fc53faee44c7/
Log: This test relies on a weakref callback. Call gc.collect() to trigger
it.
diff --git a/lib-python/modified-2.7.0/test/test_thread.py b/lib-python/modified-2.7.0/test/test_thread.py
--- a/lib-python/modified-2.7.0/test/test_thread.py
+++ b/lib-python/modified-2.7.0/test/test_thread.py
@@ -128,6 +128,7 @@
del task
while not done:
time.sleep(0.01)
+ test_support.gc_collect()
self.assertEqual(thread._count(), orig)
More information about the Pypy-commit
mailing list