8000 closes bpo-34661: Fix test_shutil if unzip doesn't support -t. (GH-9262) · python/cpython@7eeb80b · GitHub
[go: up one dir, main page]

Skip to content

Commit 7eeb80b

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 <benjamin@python.org>
1 parent 3e3d4a4 commit 7eeb80b

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
@@ -1127,6 +1127,8 @@ def test_unzip_zipfile(self):
11271127
subprocess.check_output(zip_cmd, stderr=subprocess.STDOUT)
11281128
except subprocess.CalledProcessError as exc:
11291129
details = exc.output.decode(errors="replace")
1130+
if 'unrecognized option: t' in details:
1131+
self.skip("unzip doesn't support -t")
11301132
msg = "{}\n\n**Unzip Output**\n{}"
11311133
self.fail(msg.format(exc, details))
11321134

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)
0