mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
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.
This commit is contained in:
parent
beed84ca5e
commit
b93925047a
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ def check_output(cmd, encoding=None):
|
||||||
out, err = p.communicate()
|
out, err = p.communicate()
|
||||||
if p.returncode:
|
if p.returncode:
|
||||||
raise subprocess.CalledProcessError(
|
raise subprocess.CalledProcessError(
|
||||||
p.returncode, cmd, None, out, err)
|
p.returncode, cmd, out, err)
|
||||||
return out, err
|
return out, err
|
||||||
|
|
||||||
class BaseTest(unittest.TestCase):
|
class BaseTest(unittest.TestCase):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue