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

afa at codespeak.net afa at codespeak.net
Mon Nov 8 22:42:40 CET 2010


Author: afa
Date: Mon Nov  8 22:42:37 2010
New Revision: 78899

Added:
   pypy/branch/fast-forward/lib-python/modified-2.7.0/test/test_bz2.py
      - copied, changed from r78894, pypy/branch/fast-forward/lib-python/2.7.0/test/test_bz2.py
Log:
Fix tests in test_bz2.py


Copied: pypy/branch/fast-forward/lib-python/modified-2.7.0/test/test_bz2.py (from r78894, pypy/branch/fast-forward/lib-python/2.7.0/test/test_bz2.py)
==============================================================================
--- pypy/branch/fast-forward/lib-python/2.7.0/test/test_bz2.py	(original)
+++ pypy/branch/fast-forward/lib-python/modified-2.7.0/test/test_bz2.py	Mon Nov  8 22:42:37 2010
@@ -246,6 +246,8 @@
         for i in xrange(10000):
             o = BZ2File(self.filename)
             del o
+            if i % 100 == 0:
+                test_support.gc_collect()
 
     def testOpenNonexistent(self):
         # "Test opening a nonexistent file"
@@ -310,6 +312,7 @@
             for t in threads:
                 t.join()
 
+    @test_support.impl_detail()
     def testMixedIterationReads(self):
         # Issue #8397: mixed iteration and reads should be forbidden.
         with bz2.BZ2File(self.filename, 'wb') as f:



More information about the Pypy-commit mailing list