summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_shutil.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2018-09-13 17:08:46 (GMT)
committerGitHub <noreply@github.com>2018-09-13 17:08:46 (GMT)
commita710ebd21b09efe902dde84d4862ce5c6427f7af (patch)
tree795d30272d71d7d601c56e45916656e3f57ef5e9 /Lib/test/test_shutil.py
parent53c427e839d3e55d4791dca687a2d47534465a7a (diff)
downloadcpython-a710ebd21b09efe902dde84d4862ce5c6427f7af.zip
cpython-a710ebd21b09efe902dde84d4862ce5c6427f7af.tar.gz
cpython-a710ebd21b09efe902dde84d4862ce5c6427f7af.tar.bz2
closes bpo-34661: Fix test_shutil if unzip doesn't support -t. (GH-9262)
Diffstat (limited to 'Lib/test/test_shutil.py')
-rw-r--r--Lib/test/test_shutil.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py
index 7e0a329..797228d 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))