MCPcopy Create free account
hub / github.com/python/cpython / test_read_unicode_filenames

Method test_read_unicode_filenames

Lib/test/test_zipfile/test_core.py:1945–1950  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1943
1944 @requires_zlib()
1945 def test_read_unicode_filenames(self):
1946 # bug #10801
1947 fname = findfile('zip_cp437_header.zip', subdir='archivetestdata')
1948 with zipfile.ZipFile(fname) as zipfp:
1949 for name in zipfp.namelist():
1950 zipfp.open(name).close()
1951
1952 def test_write_unicode_filenames(self):
1953 with zipfile.ZipFile(TESTFN, "w") as zf:

Callers

nothing calls this directly

Calls 4

findfileFunction · 0.90
namelistMethod · 0.45
closeMethod · 0.45
openMethod · 0.45

Tested by

no test coverage detected