We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2abaf12 commit 4eb7797Copy full SHA for 4eb7797
Lib/test/support/__init__.py
@@ -3034,6 +3034,10 @@ def get_signal_name(exitcode):
3034
except KeyError:
3035
pass
3036
3037
+ # Format Windows exit status as hexadecimal
3038
+ if 0xC0000000 <= exitcode:
3039
+ return f"0x{exitcode:X}"
3040
+
3041
return None
3042
3043
class BrokenIter:
Lib/test/test_support.py
@@ -778,6 +778,7 @@ def test_get_signal_name(self):
778
(128 + int(signal.SIGABRT), 'SIGABRT'),
779
(3221225477, "STATUS_ACCESS_VIOLATION"),
780
(0xC00000FD, "STATUS_STACK_OVERFLOW"),
781
+ (0xC0000906, "0xC0000906"),
782
):
783
self.assertEqual(support.get_signal_name(exitcode), expected,
784
exitcode)
0 commit comments