From: =?utf-8?b?TWljaGHFgiBHw7Nybnk=?= <mgorny@gentoo.org>
Date: Mon, 8 Jun 2020 09:35:41 +0200
Subject: Replace long-deprecated Thread.isAlive() with .is_alive()

Replace Thread.isAlive() calls with Thread.is_alive() to fix
compatibility with Python 3.9.  The new method was present since py2.6,
the old one got deprecated in py3.1 and was finally removed in py3.9.

Origin: upstream, https://github.com/pygame/pygame/commit/159908e5726c3df5df58429d1ff3113137c57f98
---
 test/threads_test.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/threads_test.py b/test/threads_test.py
index ce492bc..f4ac1fd 100644
--- a/test/threads_test.py
+++ b/test/threads_test.py
@@ -41,7 +41,7 @@ class WorkerQueueTypeTest(unittest.TestCase):
         self.assertGreater(len(wq.pool), 0)
 
         for t in wq.pool:
-            self.assertTrue(t.isAlive())
+            self.assertTrue(t.is_alive())
 
         for i in xrange_(200):
             wq.do(lambda x: x+1, i)
@@ -49,7 +49,7 @@ class WorkerQueueTypeTest(unittest.TestCase):
         wq.stop()
 
         for t in wq.pool:
-            self.assertFalse(t.isAlive())
+            self.assertFalse(t.is_alive())
 
         self.assertIs(wq.queue.get(), STOP)
 
