We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18656fc commit 54fcccfCopy full SHA for 54fcccf
Lib/test/test_shutil.py
@@ -13,7 +13,6 @@
13
import pathlib
14
import subprocess
15
import random
16
-import re
17
import string
18
import contextlib
19
import io
@@ -1910,7 +1909,10 @@ def test_unzip_zipfile(self):
1910
1909
subprocess.check_output(zip_cmd, stderr=subprocess.STDOUT)
1911
except subprocess.CalledProcessError as exc:
1912
details = exc.output.decode(errors="replace")
1913
- if re.search(r'(unrecognized|invalid) option(:| --) t', details):
+ if any(message in details for message in [
+ 'unrecognized option: t', # Info-ZIP
1914
+ 'invalid option -- t', # Android
1915
+ ]):
1916
self.skipTest("unzip doesn't support -t")
1917
msg = "{}\n\n**Unzip Output**\n{}"
1918
self.fail(msg.format(exc, details))
0 commit comments