From da59fadcd56fa2fdfcf3f7b1a5d84f730c1f8cac Mon Sep 17 00:00:00 2001 From: Pablo Galindo Date: Wed, 7 Nov 2018 22:21:17 +0000 Subject: [PATCH] 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. (cherry picked from commit b93925047a025511c48a7bf3e6e6f0cfec79b8ed) Co-authored-by: Pablo Galindo --- Lib/test/test_venv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py index c86f7a1a07aeb5..461fe7afd2138f 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):