Fixed Python PendingDeprecationWarning in select_for_update.tests.

This commit is contained in:
Jon Dufresne 2019-04-28 23:47:34 -07:00 committed by Mariusz Felisiak
parent 5627057f63
commit 0dd2308cf6
1 changed files with 1 additions and 1 deletions

View File

@ -375,7 +375,7 @@ class SelectForUpdateTests(TransactionTestCase):
# Check the thread has finished. Assuming it has, we should # Check the thread has finished. Assuming it has, we should
# find that it has updated the person's name. # 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, # We must commit the transaction to ensure that MySQL gets a fresh read,
# since by default it runs in REPEATABLE READ mode # since by default it runs in REPEATABLE READ mode