]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix the construction of subprocess.CalledProcessError in test_venv (GH-10400)
authorPablo Galindo <Pablogsal@gmail.com>
Wed, 7 Nov 2018 22:21:17 +0000 (22:21 +0000)
committerGitHub <noreply@github.com>
Wed, 7 Nov 2018 22:21:17 +0000 (22:21 +0000)
The constructor of subprocess.CalledProcessError in the check_output function had an extra None in it.

Lib/test/test_venv.py

index c86f7a1a07aeb5d046761387a175e5499f622896..461fe7afd2138f9660de3f30f6870f53f184994e 100644 (file)
@@ -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):