summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2008-05-05 17:44:38 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2008-05-05 17:44:38 (GMT)
commit8570f6a402abc77646b491762fb61a1fa968f432 (patch)
treebd06ccdc9801866f4a0f4ccdbcb7ccb580ee7ffb /Lib/test
parent43653bbdab49e677862ea2fae94d202e0d86058a (diff)
downloadcpython-8570f6a402abc77646b491762fb61a1fa968f432.zip
cpython-8570f6a402abc77646b491762fb61a1fa968f432.tar.gz
cpython-8570f6a402abc77646b491762fb61a1fa968f432.tar.bz2
Merged revisions 62724 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r62724 | martin.v.loewis | 2008-05-05 19:16:58 +0200 (Mo, 05 Mai 2008) | 2 lines Issue #1734346: Support Unicode file names for zipfiles. ........
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_zipfile.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_zipfile.py b/Lib/test/test_zipfile.py
index c4f8f79..c69892b 100644
--- a/Lib/test/test_zipfile.py
+++ b/Lib/test/test_zipfile.py
@@ -541,6 +541,14 @@ class PyZipFileTests(unittest.TestCase):
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.close()
+ zf = zipfile.ZipFile(TESTFN, "w")
+
+
def testCreateNonExistentFileForAppend(self):
if os.path.exists(TESTFN):
os.unlink(TESTFN)