Author: Philip Jenvey <[email protected]>
Branch: py3.3
Changeset: r72540:48d61dbba1ff
Date: 2014-07-26 12:30 -0700
http://bitbucket.org/pypy/pypy/changeset/48d61dbba1ff/

Log:    testing of __del__ needs a gc_collect

diff --git a/lib-python/3/test/test_scope.py b/lib-python/3/test/test_scope.py
--- a/lib-python/3/test/test_scope.py
+++ b/lib-python/3/test/test_scope.py
@@ -1,7 +1,8 @@
 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):
@@ -422,6 +423,7 @@
         for i in range(100):
             f1()
 
+        gc_collect()
         self.assertEqual(Foo.count, 0)
 
     def testClassAndGlobal(self):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to