From: Zackery Spytz <zspytz@gmail.com> Date: Fri, 12 Oct 2018 08:31:21 +0000 (-0600) Subject: bpo-31516: Skip test_main_thread_during_shutdown() with COUNT_ALLOCS builds. (GH... X-Git-Tag: v3.8.0a1~790 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=65d2f8c044bf597685ba72f66cbcc6b3f7a3ee9c;p=python bpo-31516: Skip test_main_thread_during_shutdown() with COUNT_ALLOCS builds. (GH-8052) --- diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index db70dfa95d..8160a5af00 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -546,6 +546,7 @@ class ThreadTests(BaseTestCase): 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