Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3k
Changeset: r59202:9cd6cb1b45ac
Date: 2012-12-01 23:45 +0100
http://bitbucket.org/pypy/pypy/changeset/9cd6cb1b45ac/
Log: A gc_collect() for a weakref test.
diff --git a/lib-python/3.2/test/test_file.py b/lib-python/3.2/test/test_file.py
--- a/lib-python/3.2/test/test_file.py
+++ b/lib-python/3.2/test/test_file.py
@@ -7,7 +7,7 @@
import io
import _pyio as pyio
-from test.support import TESTFN, run_unittest
+from test.support import TESTFN, run_unittest, gc_collect
from collections import UserList
class AutoFileTests(unittest.TestCase):
@@ -28,6 +28,7 @@
self.assertEqual(self.f.tell(), p.tell())
self.f.close()
self.f = None
+ gc_collect()
self.assertRaises(ReferenceError, getattr, p, 'tell')
def testAttributes(self):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit