[Python-checkins] cpython (2.7): allow test to work on implementations not using ref-counting (closes #22265)
benjamin.peterson
python-checkins at python.org
Mon Aug 25 01:08:57 CEST 2014
http://hg.python.org/cpython/rev/a91f8766f755
changeset: 92231:a91f8766f755
branch: 2.7
parent: 92228:b63b8c5628da
user: Benjamin Peterson <benjamin at python.org>
date: Sun Aug 24 18:07:28 2014 -0500
summary:
allow test to work on implementations not using ref-counting (closes #22265)
files:
Lib/test/test_itertools.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py
--- a/Lib/test/test_itertools.py
+++ b/Lib/test/test_itertools.py
@@ -808,6 +808,7 @@
it = islice(it, 1)
self.assertIsNotNone(wr())
list(it) # exhaust the iterator
+ test_support.gc_collect()
self.assertIsNone(wr())
def test_takewhile(self):
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list