[pypy-commit] pypy default: Fix imports in test_bz2

amauryfa noreply at buildbot.pypy.org
Sat Jun 13 01:46:54 CEST 2015


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: 
Changeset: r78064:77cff5abb0b0
Date: 2015-06-13 00:15 +0200
http://bitbucket.org/pypy/pypy/changeset/77cff5abb0b0/

Log:	Fix imports in test_bz2

diff --git a/lib-python/2.7/test/test_bz2.py b/lib-python/2.7/test/test_bz2.py
--- a/lib-python/2.7/test/test_bz2.py
+++ b/lib-python/2.7/test/test_bz2.py
@@ -51,7 +51,7 @@
         self.filename = TESTFN
 
     def tearDown(self):
-        test_support.gc_collect()
+        support.gc_collect()
         if os.path.isfile(self.filename):
             os.unlink(self.filename)
 
@@ -249,7 +249,7 @@
             o = BZ2File(self.filename)
             del o
             if i % 100 == 0:
-                test_support.gc_collect()
+                support.gc_collect()
 
     def testOpenNonexistent(self):
         # "Test opening a nonexistent file"
@@ -312,7 +312,7 @@
             with support.start_threads(threads):
                 pass
 
-    @test_support.impl_detail()
+    @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