[pypy-svn] r77767 - pypy/branch/fast-forward/lib-python/modified-2.7.0/test

afa at codespeak.net afa at codespeak.net
Sun Oct 10 21:56:03 CEST 2010


Author: afa
Date: Sun Oct 10 21:56:01 2010
New Revision: 77767

Added:
   pypy/branch/fast-forward/lib-python/modified-2.7.0/test/test_scope.py
      - copied, changed from r77766, pypy/branch/fast-forward/lib-python/2.7.0/test/test_scope.py
Log:
gc.collect() before checking for reference leaks


Copied: pypy/branch/fast-forward/lib-python/modified-2.7.0/test/test_scope.py (from r77766, pypy/branch/fast-forward/lib-python/2.7.0/test/test_scope.py)
==============================================================================
--- pypy/branch/fast-forward/lib-python/2.7.0/test/test_scope.py	(original)
+++ pypy/branch/fast-forward/lib-python/modified-2.7.0/test/test_scope.py	Sun Oct 10 21:56:01 2010
@@ -1,6 +1,6 @@
 import unittest
 from test.test_support import check_syntax_error, check_py3k_warnings, \
-                              check_warnings, run_unittest
+                              check_warnings, run_unittest, gc_collect
 
 
 class ScopeTests(unittest.TestCase):
@@ -432,6 +432,7 @@
 
         for i in range(100):
             f1()
+        gc_collect()
 
         self.assertEqual(Foo.count, 0)
 



More information about the Pypy-commit mailing list