From 01742aa932890423e39a08e414aadbb616f95c71 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sun, 28 Apr 2019 23:47:34 -0700 Subject: [PATCH] [2.2.x] Refs #31040 -- Fixed Python PendingDeprecationWarning in select_for_update.tests. Backport of 0dd2308cf6f559a4f4b50edd7c005c7cf025d1aa from master --- tests/select_for_update/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/select_for_update/tests.py b/tests/select_for_update/tests.py index 336d4a62ae..70511b09a1 100644 --- a/tests/select_for_update/tests.py +++ b/tests/select_for_update/tests.py @@ -501,7 +501,7 @@ class SelectForUpdateTests(TransactionTestCase): # Check the thread has finished. Assuming it has, we should # find that it has updated the person's name. - self.assertFalse(thread.isAlive()) + self.assertFalse(thread.is_alive()) # We must commit the transaction to ensure that MySQL gets a fresh read, # since by default it runs in REPEATABLE READ mode