diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index 43ef22b24d4919..ad54272761fdd8 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -544,6 +544,7 @@ def f(): self.assertEqual(err, b"") self.assertEqual(data, "Thread-1\nTrue\nTrue\n") + @requires_type_collecting def test_main_thread_during_shutdown(self): # bpo-31516: current_thread() should still point to the main thread # at shutdown