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

Skip to content

Commit b097f9f

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 363839c commit b097f9f

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