diff --git a/tests/test_cliutil.py b/tests/test_cliutil.py index 5a558d88fb0745fe0815e64ca0df50252c63931e..67b6bea036b9e46824e3bb364205550ba12680a5 100644 --- a/tests/test_cliutil.py +++ b/tests/test_cliutil.py @@ -153,7 +153,7 @@ def test_excepthook_oserror(errnum, caplog): error = OSError(errnum, os.strerror(errnum), 'TestFilename') with pytest.raises(SystemExit) as exc_check: cliutil.ExceptHook()(type(error), error, None) - assert exc_check.value.args[0] == 4 + assert exc_check.value.args[0] == os.EX_IOERR assert caplog.records for log in caplog.records: assert log.levelname == 'CRITICAL' @@ -168,7 +168,7 @@ def test_excepthook_bug(exc_type, caplog): error = exc_type("test message") with pytest.raises(SystemExit) as exc_check: cliutil.ExceptHook()(exc_type, error, None) - assert exc_check.value.args[0] == 3 + assert exc_check.value.args[0] == os.EX_SOFTWARE assert caplog.records for log in caplog.records: assert log.levelname == 'CRITICAL'