diff options
Diffstat (limited to 'Lib/test/test_zipfile.py')
-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('/')) |