Skip to content
Permalink
Browse files

[2.7] closes bpo-34661: Fix test_shutil if unzip doesn't support -t. (G…

…H-9267)

(cherry picked from commit a710ebd)
  • Loading branch information
benjaminp committed Sep 13, 2018
1 parent 69e9691 commit 18e21883a4ec2a36a02054eb2ff47e3ba9bd1d33
Showing with 3 additions and 0 deletions.
  1. +2 −0 Lib/test/test_shutil.py
  2. +1 −0 Misc/NEWS.d/next/Tests/2018-09-13-09-53-15.bpo-34661.bdTamP.rst
@@ -543,6 +543,8 @@ def test_unzip_zipfile(self):
subprocess.check_output(zip_cmd, stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as exc:
details = exc.output
if 'unrecognized option: t' in details:
self.skipTest("unzip doesn't support -t")
msg = "{}\n\n**Unzip Output**\n{}"
self.fail(msg.format(exc, details))

@@ -0,0 +1 @@
Fix test_shutil if unzip doesn't support -t.

0 comments on commit 18e2188

Please sign in to comment.
You can’t perform that action at this time.