closes bpo-34661: Fix test_shutil if unzip doesn't support -t. (GH-9262)
This commit is contained in:
parent
53c427e839
commit
a710ebd21b
|
@ -1181,6 +1181,8 @@ class TestShutil(unittest.TestCase):
|
||||||
subprocess.check_output(zip_cmd, stderr=subprocess.STDOUT)
|
subprocess.check_output(zip_cmd, stderr=subprocess.STDOUT)
|
||||||
except subprocess.CalledProcessError as exc:
|
except subprocess.CalledProcessError as exc:
|
||||||
details = exc.output.decode(errors="replace")
|
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{}"
|
msg = "{}\n\n**Unzip Output**\n{}"
|
||||||
self.fail(msg.format(exc, details))
|
self.fail(msg.format(exc, details))
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Fix test_shutil if unzip doesn't support -t.
|
Loading…
Reference in New Issue