[Python-checkins] r82165 - python/trunk/Lib/test/test_iter.py
benjamin.peterson
python-checkins at python.org
Tue Jun 22 22:26:20 CEST 2010
Author: benjamin.peterson
Date: Tue Jun 22 22:26:20 2010
New Revision: 82165
Log:
must force gc here
Modified:
python/trunk/Lib/test/test_iter.py
Modified: python/trunk/Lib/test/test_iter.py
==============================================================================
--- python/trunk/Lib/test/test_iter.py (original)
+++ python/trunk/Lib/test/test_iter.py Tue Jun 22 22:26:20 2010
@@ -2,7 +2,7 @@
import unittest
from test.test_support import run_unittest, TESTFN, unlink, have_unicode, \
- check_py3k_warnings
+ check_py3k_warnings, gc_collect
# Test result of triple loop (too big to inline)
TRIPLETS = [(0, 0, 0), (0, 0, 1), (0, 0, 2),
@@ -807,6 +807,7 @@
x = C()
self.assertEqual(C.count, 1)
del x
+ gc_collect()
self.assertEqual(C.count, 0)
l = [C(), C(), C()]
self.assertEqual(C.count, 3)
@@ -815,6 +816,7 @@
except ValueError:
pass
del l
+ gc_collect()
self.assertEqual(C.count, 0)
More information about the Python-checkins
mailing list