Skip to content

Commit 18e2188

Browse files
authored
[2.7] closes bpo-34661: Fix test_shutil if unzip doesn't support -t. (GH-9267)
(cherry picked from commit a710ebd)
1 parent 69e9691 commit 18e2188

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
@@ -543,6 +543,8 @@ def test_unzip_zipfile(self):
543543
subprocess.check_output(zip_cmd, stderr=subprocess.STDOUT)
544544
except subprocess.CalledProcessError as exc:
545545
details = exc.output
546+
if 'unrecognized option: t' in details:
547+
self.skipTest("unzip doesn't support -t")
546548
msg = "{}\n\n**Unzip Output**\n{}"
547549
self.fail(msg.format(exc, details))
548550

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)