aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/libregrtest/results.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/libregrtest/results.py')
-rw-r--r--Lib/test/libregrtest/results.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/libregrtest/results.py b/Lib/test/libregrtest/results.py
index 1a8619fb62b..35df50d581f 100644
--- a/Lib/test/libregrtest/results.py
+++ b/Lib/test/libregrtest/results.py
@@ -8,11 +8,13 @@ from .utils import (
printlist, count, format_duration)
+# Python uses exit code 1 when an exception is not catched
+# argparse.ArgumentParser.error() uses exit code 2
EXITCODE_BAD_TEST = 2
EXITCODE_ENV_CHANGED = 3
EXITCODE_NO_TESTS_RAN = 4
EXITCODE_RERUN_FAIL = 5
-EXITCODE_INTERRUPTED = 130
+EXITCODE_INTERRUPTED = 130 # 128 + signal.SIGINT=2
class TestResults: