Skip to content

Commit b5c74a6

Browse files
GH-85118: Add SEM_FAILCRITICALERRORS to SuppressCrashReport call to SetErrorMode (GH-103697)
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
1 parent 6f7fb6c commit b5c74a6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/support/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1940,7 +1940,8 @@ def __enter__(self):
19401940

19411941
self.old_value = msvcrt.GetErrorMode()
19421942

1943-
msvcrt.SetErrorMode(self.old_value | msvcrt.SEM_NOGPFAULTERRORBOX)
1943+
msvcrt.SetErrorMode(self.old_value | msvcrt.SEM_NOGPFAULTERRORBOX
1944+
| msvcrt.SEM_FAILCRITICALERRORS)
19441945

19451946
# bpo-23314: Suppress assert dialogs in debug builds.
19461947
# CrtSetReportMode() is only available in debug build.

0 commit comments

Comments
 (0)