Commits

Anonymous committed e7fc209

(fijal, price) Split test_zipimport.py

  • Participants
  • Parent commits 01e2251

Comments (0)

Files changed (2)

pypy/module/zipimport/test/test_zipimport.py

         assert co_filename == expected
 
 
-class AppTestZipimportDeflated(AppTestZipimport):
-    compression = ZIP_DEFLATED
-    spaceconfig = {
-        "usemodules": ['zipimport', 'zlib', 'rctime', 'struct', 'itertools', 'binascii'],
-    }
-
-    def setup_class(cls):
-        try:
-            import rpython.rlib.rzlib
-        except ImportError:
-            py.test.skip("zlib not available, cannot test compressed zipfiles")
-        cls.make_class()
-
-
 if os.sep != '/':
     class AppTestNativePathSep(AppTestZipimport):
         pathsep = os.sep

pypy/module/zipimport/test/test_zipimport_deflated.py

+import py
+
+from zipfile import ZIP_DEFLATED
+
+from pypy.module.zipimport.test.test_zipimport import AppTestZipimport
+
+class AppTestZipimportDeflated(AppTestZipimport):
+    compression = ZIP_DEFLATED
+    spaceconfig = {
+        "usemodules": ['zipimport', 'zlib', 'rctime', 'struct', 'itertools', 'binascii'],
+    }
+
+    def setup_class(cls):
+        try:
+            import rpython.rlib.rzlib
+        except ImportError:
+            py.test.skip("zlib not available, cannot test compressed zipfiles")
+        cls.make_class()