Skip to content

Commit a710ebd

Browse files
authored
closes bpo-34661: Fix test_shutil if unzip doesn't support -t. (GH-9262)
1 parent 53c427e commit a710ebd

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Lib/test/test_shutil.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,6 +1181,8 @@ def test_unzip_zipfile(self):
11811181
subprocess.check_output(zip_cmd, stderr=subprocess.STDOUT)
11821182
except subprocess.CalledProcessError as exc:
11831183
details = exc.output.decode(errors="replace")
1184+
if 'unrecognized option: t' in details:
1185+
self.skip("unzip doesn't support -t")
11841186
msg = "{}\n\n**Unzip Output**\n{}"
11851187
self.fail(msg.format(exc, details))
11861188

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix test_shutil if unzip doesn't support -t.

0 commit comments

Comments
 (0)