[New-bugs-announce] [issue31999] test_venv failed when the zlib module is not available
Serhiy Storchaka
report at bugs.python.org
Fri Nov 10 04:28:58 EST 2017
New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:
http://buildbot.python.org/all/#/builders/14/builds/160/steps/4/logs/stdio
======================================================================
FAIL: test_with_pip (test.test_venv.EnsurePipTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/test/test_venv.py", line 363, in do_test_with_pip
with_pip=True)
File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/test/test_venv.py", line 56, in run_with_capture
func(*args, **kwargs)
subprocess.CalledProcessError: Command '['/private/var/folders/sy/9hwmqyx14s11577cvgzwf2v40000gt/T/tmpljv28gk_/bin/python.exe', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/test/test_venv.py", line 421, in test_with_pip
self.do_test_with_pip(False)
File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/test/test_venv.py", line 369, in do_test_with_pip
self.fail(msg.format(exc, details))
AssertionError: Command '['/private/var/folders/sy/9hwmqyx14s11577cvgzwf2v40000gt/T/tmpljv28gk_/bin/python.exe', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
**Subprocess Output**
Traceback (most recent call last):
File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/ensurepip/__main__.py", line 5, in <module>
sys.exit(ensurepip._main())
File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/ensurepip/__init__.py", line 204, in _main
default_pip=args.default_pip,
File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/ensurepip/__init__.py", line 117, in _bootstrap
return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
File "/Users/buildbot/buildarea/3.x.billenstein-sierra/build/Lib/ensurepip/__init__.py", line 27, in _run_pip
import pip
zipimport.ZipImportError: can't decompress data; zlib not available
----------------------------------------------------------------------
----------
assignee: serhiy.storchaka
components: Tests
messages: 306010
nosy: serhiy.storchaka, vinay.sajip
priority: normal
severity: normal
stage: needs patch
status: open
title: test_venv failed when the zlib module is not available
type: behavior
versions: Python 3.6, Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31999>
_______________________________________
More information about the New-bugs-announce
mailing list