Public bug reported: ``` $ python3.5 -m test test_venv [1/1] test_venv test test_venv failed -- Traceback (most recent call last): File "/usr/lib/python3.5/test/test_venv.py", line 407, in test_with_pip self.assertEqual(err.rstrip(), "") AssertionError: 'Traceback (most recent call last):\n Fil[597 chars]list' != '' - Traceback (most recent call last): - File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main - "__main__", mod_spec) - File "/usr/lib/python3.5/runpy.py", line 85, in _run_code - exec(code, run_globals) - File "/usr/lib/python3.5/ensurepip/_uninstall.py", line 30, in <module> - _main() - File "/usr/lib/python3.5/ensurepip/_uninstall.py", line 26, in _main - ensurepip._uninstall_helper(verbosity=args.verbosity) - File "/usr/lib/python3.5/ensurepip/__init__.py", line 203, in _uninstall_helper - _run_pip(args + reversed(_PROJECTS)) - TypeError: can only concatenate list (not "list_reverseiterator") to list
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/patches/ensurepip-wheels.diff b/debian/patches/ensurepip-wheels.diff index df5de92..858feb0 100644 --- a/debian/patches/ensurepip-wheels.diff +++ b/debian/patches/ensurepip-wheels.diff @@ -115,7 +115,7 @@ Index: b/Lib/ensurepip/__init__.py args += ["-" + "v" * verbosity] - _run_pip(args + [p[0] for p in reversed(_PROJECTS)]) -+ _run_pip(args + reversed(_PROJECTS)) ++ _run_pip(args + list(reversed(_PROJECTS))) 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~16.04.1 Candidate: 3.5.2-2ubuntu0~16.04.1 Version table: *** 3.5.2-2ubuntu0~16.04.1 500 500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages 500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages 100 /var/lib/dpkg/status 3.5.1-10 500 500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages ``` ** Affects: python3.5 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1655220 Title: Test failure: test_venv To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python3.5/+bug/1655220/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs