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:
Pablo Galindo 2018-11-07 22:21:17 +00:00 committed by GitHub
parent beed84ca5e
commit b93925047a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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):