mirror of https://github.com/python/cpython.git
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
|
@ -35,7 +35,7 @@ def check_output(cmd, encoding=None):
|
|||
out, err = p.communicate()
|
||||
if p.returncode:
|
||||
raise subprocess.CalledProcessError(
|
||||
p.returncode, cmd, None, out, err)
|
||||
p.returncode, cmd, out, err)
|
||||
return out, err
|
||||
|
||||
class BaseTest(unittest.TestCase):
|
||||
|
|
Loading…
Reference in New Issue