Skip to content

Commit ee106a2

Browse files
committed
Fix tests for the default build.
1 parent f523a83 commit ee106a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_faulthandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def check_error(self, code, lineno, fatal_error, *,
118118
if all_threads_disabled and not py_fatal_error:
119119
regex.append("<Cannot show all threads while the GIL is disabled>")
120120
regex.append(fr'{header} \(most recent call first\):')
121-
if py_fatal_error and not know_current_thread:
121+
if support.Py_GIL_DISABLED and py_fatal_error and not know_current_thread:
122122
regex.append(" <tstate is freed>")
123123
else:
124124
if garbage_collecting and not all_threads_disabled:

0 commit comments

Comments
 (0)