From 94199401f838f225d998beaf084dda2b329e5380 Mon Sep 17 00:00:00 2001 From: Zackery Spytz Date: Fri, 12 Oct 2018 02:31:21 -0600 Subject: [PATCH] bpo-31516: Skip test_main_thread_during_shutdown() with COUNT_ALLOCS builds. (GH-8052) (cherry picked from commit 65d2f8c044bf597685ba72f66cbcc6b3f7a3ee9c) Co-authored-by: Zackery Spytz --- Lib/test/test_threading.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py index db70dfa95df052..8160a5af006447 100644 --- a/Lib/test/test_threading.py +++ b/Lib/test/test_threading.py @@ -546,6 +546,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