Commits

Amaury Forgeot d'Arc  committed 9cd6cb1

A gc_collect() for a weakref test.

  • Participants
  • Parent commits 8ab0bba
  • Branches py3k

Comments (0)

Files changed (1)

File lib-python/3.2/test/test_file.py

 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):
         self.assertEqual(self.f.tell(), p.tell())
         self.f.close()
         self.f = None
+        gc_collect()
         self.assertRaises(ReferenceError, getattr, p, 'tell')
 
     def testAttributes(self):