From: Serhiy Storchaka Date: Sat, 2 Feb 2013 17:25:57 +0000 (+0200) Subject: Fix test for issue #6972. X-Git-Tag: v2.7.4rc1~160 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2a051fa117ae022f1d1c098ffce9f17e1491fba4;p=thirdparty%2FPython%2Fcpython.git Fix test for issue #6972. --- diff --git a/Lib/test/test_zipfile.py b/Lib/test/test_zipfile.py index b5fff7fa7231..c26ca80b0a9d 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('/'))