Commits

Philip Jenvey committed 48d61db

testing of __del__ needs a gc_collect

  • Participants
  • Parent commits 6a34ba3
  • Branches py3.3

Comments (0)

Files changed (1)

lib-python/3/test/test_scope.py

 import unittest
 import weakref
 
-from test.support import check_syntax_error, cpython_only, run_unittest
+from test.support import (
+    check_syntax_error, cpython_only, run_unittest, gc_collect)
 
 
 class ScopeTests(unittest.TestCase):
         for i in range(100):
             f1()
 
+        gc_collect()
         self.assertEqual(Foo.count, 0)
 
     def testClassAndGlobal(self):