diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2019-04-28 23:47:34 -0700 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-10-12 12:21:33 +0200 |
| commit | 01742aa932890423e39a08e414aadbb616f95c71 (patch) | |
| tree | b57f21f96bd09c4f34414318ed7205d78b837165 | |
| parent | 87b9a8b4de29d96be6b6a74992357b635d198b58 (diff) | |
[2.2.x] Refs #31040 -- Fixed Python PendingDeprecationWarning in select_for_update.tests.
Backport of 0dd2308cf6f559a4f4b50edd7c005c7cf025d1aa from master
| -rw-r--r-- | tests/select_for_update/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
