[Jython-checkins] jython: Improve test_weakset.test_weak_destroy_and_mutate_while_iterating resilience by
darjus.loktevic
jython-checkins at python.org
Thu Jan 21 16:33:19 EST 2016
https://hg.python.org/jython/rev/df609091b999
changeset: 7882:df609091b999
user: Darjus Loktevic <darjus at gmail.com>
date: Fri Jan 22 08:33:05 2016 +1100
summary:
Improve test_weakset.test_weak_destroy_and_mutate_while_iterating resilience by doing an extra gc.collect() (fixes test failures on circleci)
files:
Lib/test/test_weakset.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_weakset.py b/Lib/test/test_weakset.py
--- a/Lib/test/test_weakset.py
+++ b/Lib/test/test_weakset.py
@@ -415,6 +415,7 @@
finally:
it = None # should commit all removals
+ gc.collect() # final before asserts
with testcontext() as u:
self.assertNotIn(u, s)
with testcontext() as u:
--
Repository URL: https://hg.python.org/jython
More information about the Jython-checkins
mailing list