mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
closes bpo-34661: Fix test_shutil if unzip doesn't support -t. (GH-9262)
This commit is contained in:
parent
53c427e839
commit
a710ebd21b
2 changed files with 3 additions and 0 deletions
|
@ -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))
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Fix test_shutil if unzip doesn't support -t.
|
Loading…
Add table
Add a link
Reference in a new issue