Skip to content

Commit 1550b73

Browse files
closes bpo-34661: Fix test_shutil if unzip doesn't support -t. (GH-9262)
(cherry picked from commit a710ebd) Co-authored-by: Benjamin Peterson <[email protected]>
1 parent b2ff9a9 commit 1550b73

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
@@ -1124,6 +1124,8 @@ def test_unzip_zipfile(self):
11241124
subprocess.check_output(zip_cmd, stderr=subprocess.STDOUT)
11251125
except subprocess.CalledProcessError as exc:
11261126
details = exc.output.decode(errors="replace")
1127+
if 'unrecognized option: t' in details:
1128+
self.skip("unzip doesn't support -t")
11271129
msg = "{}\n\n**Unzip Output**\n{}"
11281130
self.fail(msg.format(exc, details))
11291131

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)