From: Benjamin Peterson Date: Thu, 13 Sep 2018 17:08:46 +0000 (-0700) Subject: closes bpo-34661: Fix test_shutil if unzip doesn't support -t. (GH-9262) X-Git-Tag: v3.8.0a1~1010 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a710ebd21b09efe902dde84d4862ce5c6427f7af;p=python closes bpo-34661: Fix test_shutil if unzip doesn't support -t. (GH-9262) --- diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py index 7e0a3292e0..797228db4d 100644 --- a/Lib/test/test_shutil.py +++ b/Lib/test/test_shutil.py @@ -1181,6 +1181,8 @@ class TestShutil(unittest.TestCase): 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)) diff --git a/Misc/NEWS.d/next/Tests/2018-09-13-09-53-15.bpo-34661.bdTamP.rst b/Misc/NEWS.d/next/Tests/2018-09-13-09-53-15.bpo-34661.bdTamP.rst new file mode 100644 index 0000000000..fc2b8e90ea --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2018-09-13-09-53-15.bpo-34661.bdTamP.rst @@ -0,0 +1 @@ +Fix test_shutil if unzip doesn't support -t.