From 1a9f900073c7e5e3f01dac552ab232ebe320b598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Mon, 5 May 2008 17:50:05 +0000 Subject: Merged revisions 62726 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r62726 | martin.v.loewis | 2008-05-05 19:47:06 +0200 (Mo, 05 Mai 2008) | 2 lines Fix Unicode filename test. ........ --- Lib/test/test_zipfile.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Lib/test/test_zipfile.py b/Lib/test/test_zipfile.py index c69892b..6878262 100644 --- a/Lib/test/test_zipfile.py +++ b/Lib/test/test_zipfile.py @@ -544,10 +544,12 @@ class OtherTests(unittest.TestCase): def testUnicodeFilenames(self): zf = zipfile.ZipFile(TESTFN, "w") zf.writestr("foo.txt", "Test for unicode filename") - zf.writestr("fo\xf6.txt", "Test for unicode filename") + zf.writestr("\xf6.txt", "Test for unicode filename") + zf.close() + zf = zipfile.ZipFile(TESTFN, "r") + self.assertEqual(zf.filelist[0].filename, "foo.txt") + self.assertEqual(zf.filelist[1].filename, "\xf6.txt") zf.close() - zf = zipfile.ZipFile(TESTFN, "w") - def testCreateNonExistentFileForAppend(self): if os.path.exists(TESTFN): -- cgit v0.12