[Python-checkins] Fix the construction of subprocess.CalledProcessError in test_venv (GH-10400)

Pablo Galindo webhook-mailer at python.org
Wed Nov 7 17:21:22 EST 2018


https://github.com/python/cpython/commit/b93925047a025511c48a7bf3e6e6f0cfec79b8ed
commit: b93925047a025511c48a7bf3e6e6f0cfec79b8ed
branch: master
author: Pablo Galindo <Pablogsal at gmail.com>
committer: GitHub <noreply at github.com>
date: 2018-11-07T22:21:17Z
summary:

Fix the construction of subprocess.CalledProcessError in test_venv (GH-10400)

The constructor of subprocess.CalledProcessError in the check_output function had an extra None in it.

files:
M Lib/test/test_venv.py

diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py
index c86f7a1a07ae..461fe7afd213 100644
--- a/Lib/test/test_venv.py
+++ b/Lib/test/test_venv.py
@@ -35,7 +35,7 @@ def check_output(cmd, encoding=None):
     out, err = p.communicate()
     if p.returncode:
         raise subprocess.CalledProcessError(
-            p.returncode, cmd, None, out, err)
+            p.returncode, cmd, out, err)
     return out, err
 
 class BaseTest(unittest.TestCase):



More information about the Python-checkins mailing list