]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix the construction of subprocess.CalledProcessError in test_venv (GH-10400)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 7 Nov 2018 22:46:10 +0000 (14:46 -0800)
committerGitHub <noreply@github.com>
Wed, 7 Nov 2018 22:46:10 +0000 (14:46 -0800)
The constructor of subprocess.CalledProcessError in the check_output function had an extra None in it.
(cherry picked from commit b93925047a025511c48a7bf3e6e6f0cfec79b8ed)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Lib/test/test_venv.py

index d1ffb8132d819c7475f996236dfe7179c61f4db6..842470fef08a090f04c647b36a9f1e6cf2c0faa9 100644 (file)
@@ -40,7 +40,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):