diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-02-02 19:25:57 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-02-02 19:25:57 +0200 |
commit | 2a051fa117ae022f1d1c098ffce9f17e1491fba4 (patch) | |
tree | 82caac697dd5c3e6b9b2d56a14d9ea688f61cfa4 | |
parent | a8d64ae304f42511520960ab3c3e22bb055b5d10 (diff) | |
download | cpython-git-2a051fa117ae022f1d1c098ffce9f17e1491fba4.tar.gz |
Fix test for issue #6972.
-rw-r--r-- | Lib/test/test_zipfile.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_zipfile.py b/Lib/test/test_zipfile.py index b5fff7fa72..c26ca80b0a 100644 --- a/Lib/test/test_zipfile.py +++ b/Lib/test/test_zipfile.py @@ -473,6 +473,7 @@ class TestsWithSourceFile(unittest.TestCase): zinfo.external_attr = 0o600 << 16 zipfp.writestr(zinfo, content) + arcname = arcname.replace(os.sep, "/") targetpath = os.path.join('target', 'subdir', 'subsub') correctfile = os.path.join(targetpath, *fixedname.split('/')) |