Skip to content

Commit 0e39836

Browse files
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 b939250) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
1 parent f6b9459 commit 0e39836

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)