(original) (raw)

changeset: 81937:ab4b8da79a5f branch: 2.7 parent: 81933:4d120cea3507 user: Serhiy Storchaka storchaka@gmail.com date: Sat Feb 02 19:25:57 2013 +0200 files: Lib/test/test_zipfile.py description: Fix test for issue #6972. diff -r 4d120cea3507 -r ab4b8da79a5f Lib/test/test_zipfile.py --- a/Lib/test/test_zipfile.py Sat Feb 02 18:43:58 2013 +0200 +++ b/Lib/test/test_zipfile.py Sat Feb 02 19:25:57 2013 +0200 @@ -473,6 +473,7 @@ 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('/')) /storchaka@gmail.com