8000 Fix the construction of subprocess.CalledProcessError in test_venv (G… · miss-islington/cpython@ddb9f75 · GitHub
[go: up one dir, main page]

Skip to content

Commit ddb9f75

Browse files
pablogsalmiss-islington
authored andcommitted
Fix the construction of subprocess.CalledProcessError in test_venv (pythonGH-10400)
The constructor of subprocess.CalledProcessError in the check_output function had an extra None in it. (cherry picked from commit b939250) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
1 parent f6b9459 commit ddb9f75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_venv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def check_output(cmd, encoding=None):
4040
out, err = p.communicate()
4141
if p.returncode:
4242
raise subprocess.CalledProcessError(
43-
p.returncode, cmd, None, out, err)
43+
p.returncode, cmd, out, err)
4444
return out, err
4545

4646
class BaseTest(unittest.TestCase):

0 commit comments

Comments
 (0)
0