summaryrefslogtreecommitdiff
path: root/tests/modeltests/select_for_update
diff options
context:
space:
mode:
Diffstat (limited to 'tests/modeltests/select_for_update')
-rw-r--r--tests/modeltests/select_for_update/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/modeltests/select_for_update/tests.py b/tests/modeltests/select_for_update/tests.py
index 0587e11a3a..243f6b50e7 100644
--- a/tests/modeltests/select_for_update/tests.py
+++ b/tests/modeltests/select_for_update/tests.py
@@ -80,7 +80,7 @@ class SelectForUpdateTests(TransactionTestCase):
return bool(sql.find(for_update_sql) > -1)
def check_exc(self, exc):
- self.failUnless(isinstance(exc, DatabaseError))
+ self.assertTrue(isinstance(exc, DatabaseError))
@skipUnlessDBFeature('has_select_for_update')
def test_for_update_sql_generated(self):
@@ -217,7 +217,7 @@ class SelectForUpdateTests(TransactionTestCase):
# Check the thread has finished. Assuming it has, we should
# find that it has updated the person's name.
- self.failIf(thread.isAlive())
+ self.assertFalse(thread.isAlive())
# We must commit the transaction to ensure that MySQL gets a fresh read,
# since by default it runs in REPEATABLE READ mode