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 73fa6be commit b121dc4Copy full SHA for b121dc4
Lib/test/support/__init__.py
@@ -3116,6 +3116,10 @@ def get_signal_name(exitcode):
3116
except KeyError:
3117
pass
3118
3119
+ # Format Windows exit status as hexadecimal
3120
+ if 0xC0000000 <= exitcode:
3121
+ return f"0x{exitcode:X}"
3122
+
3123
return None
3124
3125
class BrokenIter:
Lib/test/test_support.py
@@ -788,6 +788,7 @@ def test_get_signal_name(self):
788
(128 + int(signal.SIGABRT), 'SIGABRT'),
789
(3221225477, "STATUS_ACCESS_VIOLATION"),
790
(0xC00000FD, "STATUS_STACK_OVERFLOW"),
791
+ (0xC0000906, "0xC0000906"),
792
):
793
self.assertEqual(support.get_signal_name(exitcode), expected,
794
exitcode)
0 commit comments