[issue34661] test_shutil fails with busybox unzip
Benjamin Peterson
report at bugs.python.org
Thu Sep 13 12:52:18 EDT 2018
New submission from Benjamin Peterson <benjamin at python.org>:
BusyBox has a unzip command, but it doesn't support -t.
======================================================================
FAIL: test_unzip_zipfile (test.test_shutil.TestShutil)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-alpine/build/Lib/test/test_shutil.py", line 1181, in test_unzip_zipfile
subprocess.check_output(zip_cmd, stderr=subprocess.STDOUT)
subprocess.CalledProcessError: Command '['unzip', '-t', '/tmp/tmp92zs6lmt/archive.zip']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/buildbot/buildarea/3.x.ware-alpine/build/Lib/test/test_shutil.py", line 1185, in test_unzip_zipfile
self.fail(msg.format(exc, details))
AssertionError: Command '['unzip', '-t', '/tmp/tmp92zs6lmt/archive.zip']' returned non-zero exit status 1.
**Unzip Output**
unzip: unrecognized option: t
BusyBox v1.27.2 (2017-12-12 10:41:50 GMT) multi-call binary.
Usage: unzip [-lnopq] FILE[.zip] [FILE]... [-x FILE...] [-d DIR]
Extract FILEs from ZIP archive
-l List contents (with -q for short form)
-n Never overwrite files (default: ask)
-o Overwrite
-p Print to stdout
-q Quiet
-x FILE Exclude FILEs
-d DIR Extract into DIR
----------
components: Tests
messages: 325262
nosy: benjamin.peterson
priority: normal
severity: normal
status: open
title: test_shutil fails with busybox unzip
versions: Python 3.6, Python 3.7, Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34661>
_______________________________________
More information about the Python-bugs-list
mailing list