We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00b9633 commit 1afb202Copy full SHA for 1afb202
Lib/test/test_crashers/__init__.py
@@ -32,7 +32,13 @@ def test_crashers_crash(self):
32
if support.verbose:
33
print(f"Checking crasher: {script}", flush=True)
34
proc = assert_python_failure(fname)
35
- self.assertLess(proc.rc, 0, proc)
+ if os.name != "nt":
36
+ # On Unix, if proc.rc is negative, the process was killed
37
+ # by a signal
38
+ self.assertLess(proc.rc, 0, proc)
39
+ else:
40
+ # Windows. For example, C0000005 is an Access Violation
41
+ self.assertGreaterEqual(proc.rc, 0xC0000000, proc)
42
43
44
def tearDownModule():
0 commit comments