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

afa at codespeak.net afa at codespeak.net
Fri Oct 29 00:47:54 CEST 2010


Author: afa
Date: Fri Oct 29 00:47:53 2010
New Revision: 78429

Added:
   pypy/branch/fast-forward/lib-python/modified-2.7.0/test/test_tempfile.py
      - copied, changed from r78426, pypy/branch/fast-forward/lib-python/2.7.0/test/test_tempfile.py
   pypy/branch/fast-forward/lib-python/modified-2.7.0/test/tf_inherit_check.py
      - copied unchanged from r78426, pypy/branch/fast-forward/lib-python/2.7.0/test/tf_inherit_check.py
Log:
More fixes with gc.collect()


Copied: pypy/branch/fast-forward/lib-python/modified-2.7.0/test/test_tempfile.py (from r78426, pypy/branch/fast-forward/lib-python/2.7.0/test/test_tempfile.py)
==============================================================================
--- pypy/branch/fast-forward/lib-python/2.7.0/test/test_tempfile.py	(original)
+++ pypy/branch/fast-forward/lib-python/modified-2.7.0/test/test_tempfile.py	Fri Oct 29 00:47:53 2010
@@ -244,6 +244,7 @@
         dir = tempfile.mkdtemp()
         try:
             self.do_create(dir=dir).write("blat")
+            test_support.gc_collect()
         finally:
             os.rmdir(dir)
 
@@ -528,12 +529,15 @@
         self.do_create(suf="b")
         self.do_create(pre="a", suf="b")
         self.do_create(pre="aa", suf=".txt")
+        test_support.gc_collect()
 
     def test_many(self):
         # mktemp can choose many usable file names (stochastic)
         extant = range(TEST_FILES)
         for i in extant:
             extant[i] = self.do_create(pre="aa")
+        del extant
+        test_support.gc_collect()
 
 ##     def test_warning(self):
 ##         # mktemp issues a warning when used



More information about the Pypy-commit mailing list