[Python-checkins] cpython (3.4): allow test to work on implementations not using ref-counting (closes #22265)

benjamin.peterson python-checkins at python.org
Mon Aug 25 01:08:59 CEST 2014


http://hg.python.org/cpython/rev/e6bb59b6b85c
changeset: 92232:e6bb59b6b85c
branch: 3.4
parent: 92229:b1c82ef96862
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
@@ -1100,6 +1100,7 @@
 it = islice(it, 1)
 self.assertIsNotNone(wr())
 list(it) # exhaust the iterator
+ 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

AltStyle によって変換されたページ (->オリジナル) /