Skip to content

Commit

Permalink
closes bpo-34661: Fix test_shutil if unzip doesn't support -t. (pytho…
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminp committed Sep 13, 2018
1 parent 53c427e commit a710ebd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/test/test_shutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -1181,6 +1181,8 @@ def test_unzip_zipfile(self):
subprocess.check_output(zip_cmd, stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as exc:
details = exc.output.decode(errors="replace")
if 'unrecognized option: t' in details:
self.skip("unzip doesn't support -t")
msg = "{}\n\n**Unzip Output**\n{}"
self.fail(msg.format(exc, details))

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix test_shutil if unzip doesn't support -t.

0 comments on commit a710ebd

Please sign in to comment.