This commit is contained in:
Matt Martz 2018-01-02 17:07:28 -06:00
parent a75ee8e097
commit 5aa515e52c
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ stdout, stderr = p.communicate()
if p.returncode != 1:
raise SystemExit('%s did not fail with exit code 1' % ' '.join(cmd))
if b'Invalid argument' not in stderr:
if 'Invalid argument'.encode() not in stderr:
raise SystemExit(
'"Invalid argument" not found in stderr:\n%s' % stderr.decode()
)