]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix test for issue #6972.
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 2 Feb 2013 17:25:57 +0000 (19:25 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Sat, 2 Feb 2013 17:25:57 +0000 (19:25 +0200)
Lib/test/test_zipfile.py

index b5fff7fa7231ba3463793780afa71adb391fd0b1..c26ca80b0a9d1bc1d3985ad411ff4d6fd46dfa74 100644 (file)
@@ -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('/'))