Author: Matti Picus <[email protected]>
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)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit