[pypy-commit] pypy default: fix test for cpython and pypy

mattip noreply at buildbot.pypy.org
Mon Apr 28 06:18:48 CEST 2014


Author: Matti Picus <matti.picus at gmail.com>
Branch: 
Changeset: r71033:6b69d6b92167
Date: 2014-04-28 07:17 +0300
http://bitbucket.org/pypy/pypy/changeset/6b69d6b92167/

Log:	fix test for cpython and pypy

diff --git a/pypy/module/zipimport/test/test_undocumented.py b/pypy/module/zipimport/test/test_undocumented.py
--- a/pypy/module/zipimport/test/test_undocumented.py
+++ b/pypy/module/zipimport/test/test_undocumented.py
@@ -135,8 +135,7 @@
             importer = zipimport.zipimporter(os.path.join(zip_path, '_pkg'))
             assert zip_path in zipimport._zip_directory_cache
             file_set = set(zipimport._zip_directory_cache[zip_path].iterkeys())
-            compare_set = set(path.replace(os.path.sep, '/') + '.py'
-                              for path in self.created_paths)
+            compare_set = set(path + '.py' for path in self.created_paths)
             assert file_set == compare_set
         finally:
             self.cleanup_zipfile(self.created_paths)


More information about the pypy-commit mailing list