Skip to content

Commit 43c28e2

Browse files
committed
Do not run test_cli_with_metadata_encoding_extract if system encoding is not UTF8
1 parent c81fa2b commit 43c28e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_zipfile/test_core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3631,6 +3631,7 @@ def test_cli_with_metadata_encoding(self):
36313631
for name in self.file_names:
36323632
self.assertIn(name, listing)
36333633

3634+
@unittest.skipIf(locale.getpreferredencoding().lower() != 'utf-8', 'test requires utf-8')
36343635
def test_cli_with_metadata_encoding_extract(self):
36353636
os.mkdir(TESTFN2)
36363637
self.addCleanup(rmtree, TESTFN2)

0 commit comments

Comments
 (0)