We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad703da commit 1a5437cCopy full SHA for 1a5437c
1 file changed
test/test_scripts.py
@@ -37,14 +37,16 @@ def test_do_commands_exist(self):
37
try:
38
subprocess.check_output(command.split(), stderr=subprocess.STDOUT)
39
except subprocess.CalledProcessError as e:
40
- error_code = e.returncode
+ return_code = e.returncode
41
+ output = e.output
42
else:
- error_code = 0
43
+ return_code = 0
44
+ output = "-- NO OUTPUT --"
45
46
allowed = [0, errno.EINVAL]
- self.assertIn(error_code, allowed,
47
+ self.assertIn(return_code, allowed,
48
'Calling "{}" failed (exit code was {} and not SUCCESS/0 or EINVAL/22):\n{}'
- .format(command, e.returncode, e.output))
49
+ .format(command, return_code, output))
50
51
def test_does_not_crash(self):
52
# test import
0 commit comments