Test failure: test_venv
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python3.5 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
```
$ python3.5 -m test test_venv
[1/1] test_venv
test test_venv failed -- Traceback (most recent call last):
File "/usr/lib/
self.
AssertionError: 'Traceback (most recent call last):\n Fil[597 chars]list' != ''
- Traceback (most recent call last):
- File "/usr/lib/
- "__main__", mod_spec)
- File "/usr/lib/
- exec(code, run_globals)
- File "/usr/lib/
- _main()
- File "/usr/lib/
- ensurepip.
- File "/usr/lib/
- _run_pip(args + reversed(
- TypeError: can only concatenate list (not "list_reverseit
1 test failed:
test_venv
```
The debian patch here is buggy (even in python2) as reversed returns an iterator. A patch to the patch which fixes this:
```diff
diff --git a/debian/
index df5de92..858feb0 100644
--- a/debian/
+++ b/debian/
@@ -115,7 +115,7 @@ Index: b/Lib/ensurepip
args += ["-" + "v" * verbosity]
- _run_pip(args + [p[0] for p in reversed(
-+ _run_pip(args + reversed(
++ _run_pip(args + list(reversed(
def _main(argv=None):
```
```
$ lsb_release -rd
Description: Ubuntu 16.04.1 LTS
Release: 16.04
$ apt-cache policy python3.5
python3.5:
Installed: 3.5.2-2ubuntu0~
Candidate: 3.5.2-2ubuntu0~
Version table:
*** 3.5.2-2ubuntu0~
500 http://
500 http://
100 /var/lib/
3.5.1-10 500
500 http://
```