mirror of https://github.com/python/cpython
gh-117658: Fix check_dump_traceback_threads in free-threaded build (#117659)
With the GIL disabled, the waiting thread may still be in the `self.running.set() ` call when faulthandler dumps tracebacks.
This commit is contained in:
parent
fa58e75a86
commit
6edde8a91c
|
@ -575,10 +575,12 @@ class FaultHandlerTests(unittest.TestCase):
|
|||
lineno = 8
|
||||
else:
|
||||
lineno = 10
|
||||
# When the traceback is dumped, the waiter thread may be in the
|
||||
# `self.running.set()` call or in `self.stop.wait()`.
|
||||
regex = r"""
|
||||
^Thread 0x[0-9a-f]+ \(most recent call first\):
|
||||
(?: File ".*threading.py", line [0-9]+ in [_a-z]+
|
||||
){{1,3}} File "<string>", line 23 in run
|
||||
){{1,3}} File "<string>", line (?:22|23) in run
|
||||
File ".*threading.py", line [0-9]+ in _bootstrap_inner
|
||||
File ".*threading.py", line [0-9]+ in _bootstrap
|
||||
|
||||
|
|
Loading…
Reference in New Issue