Skip to content

Commit 4999bbf

Browse files
Match the test
1 parent 910a204 commit 4999bbf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Lib/test/test_capi/test_misc.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ def test_no_FatalError_infinite_loop(self):
107107
"but the GIL is released "
108108
"(the current Python thread state is NULL)").encode()
109109
else:
110-
msg = ("Fatal Python error: PyThreadState_Get: "
111-
"the function must be called with an active thread state, "
112-
"after Python initialization and before Python finalization, but the thread state is NULL. "
113-
"(are you trying to call the C API inside of a Py_BEGIN_ALLOW_THREADS block?)").encode()
110+
msg = ("the function must be called with an active thread state, "
111+
"after Python initialization and before Python finalization, "
112+
"but it was called without an active thread state. "
113+
"Are you trying to call the C API inside of a Py_BEGIN_ALLOW_THREADS block?").encode()
114114
self.assertTrue(err.rstrip().startswith(msg),
115115
err)
116116

0 commit comments

Comments
 (0)