10000 Fix the construction of subprocess.CalledProcessError in test_venv (G… · python/cpython@b939250 · GitHub
[go: up one dir, main page]

Skip to content

Commit b939250

Browse files
authored
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.
1 parent beed84c commit b939250

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
@@ -35,7 +35,7 @@ def check_output(cmd, encoding=None):
3535
out, err = p.communicate()
3636
if p.returncode:
3737
raise subprocess.CalledProcessError(
38-
p.returncode, cmd, None, out, err)
38+
p.returncode, cmd, out, err)
3939
return out, err
4040

4141
class BaseTest(unittest.TestCase):

0 commit comments

Comments
 (0)
0