]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-31516: Skip test_main_thread_during_shutdown() with COUNT_ALLOCS builds. (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 12 Oct 2018 08:54:18 +0000 (01:54 -0700)
committerGitHub <noreply@github.com>
Fri, 12 Oct 2018 08:54:18 +0000 (01:54 -0700)
(cherry picked from commit 65d2f8c044bf597685ba72f66cbcc6b3f7a3ee9c)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Lib/test/test_threading.py

index 43ef22b24d4919a5ed4630864dd68fccb697d5b4..ad54272761fdd8eee98c2401c79137d2b0692d28 100644 (file)
@@ -544,6 +544,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