[Jython-checkins] jython: Increase the count of gc.collect() in test_weakset some more :(
darjus.loktevic
jython-checkins at python.org
Wed Feb 3 21:36:56 EST 2016
https://hg.python.org/jython/rev/fb5573288c99
changeset: 7897:fb5573288c99
user: Darjus Loktevic <darjus at gmail.com>
date: Thu Feb 04 13:36:47 2016 +1100
summary:
Increase the count of gc.collect() in test_weakset some more :(
files:
Lib/test/test_weakset.py | 10 ++++++++--
1 files changed, 8 insertions(+), 2 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
@@ -439,13 +439,19 @@
items = [RefCycle() for i in range(N)]
s = WeakSet(items)
del items
- gc.collect()
+ # do some gc
+ for _ in xrange(10):
+ gc.collect()
it = iter(s)
try:
next(it)
except StopIteration:
pass
- gc.collect()
+
+ # do some gc
+ for _ in xrange(10):
+ gc.collect()
+
n1 = len(s)
del it
# do some gc
--
Repository URL: https://hg.python.org/jython
More information about the Jython-checkins
mailing list