Skip to content

Commit d918e98

Browse files
bpo-31516: Skip test_main_thread_during_shutdown() with COUNT_ALLOCS builds. (GH-8052)
(cherry picked from commit 65d2f8c) Co-authored-by: Zackery Spytz <[email protected]>
1 parent f39defe commit d918e98

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_threading.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,7 @@ def f():
544544
self.assertEqual(err, b"")
545545
self.assertEqual(data, "Thread-1\nTrue\nTrue\n")
546546

547+
@requires_type_collecting
547548
def test_main_thread_during_shutdown(self):
548549
# bpo-31516: current_thread() should still point to the main thread
549550
# at shutdown

0 commit comments

Comments
 (0)