Commit a710ebd2 authored by Benjamin Peterson's avatar Benjamin Peterson Committed by GitHub

closes bpo-34661: Fix test_shutil if unzip doesn't support -t. (GH-9262)

parent 53c427e8
......@@ -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))
......
Fix test_shutil if unzip doesn't support -t.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment