diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-05-03 16:39:16 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-05-03 16:39:16 +0200 |
| commit | b52672d77822e88752cb178c8a359adde83ff0ba (patch) | |
| tree | 5289bd86172caf66b0b37dfe21737b757777c8f0 /tests/modeltests/select_for_update | |
| parent | e84f79f05113f546810c1908c7baef99fb1e874a (diff) | |
Replaced deprecated TestCase methods. Refs #17049.
Diffstat (limited to 'tests/modeltests/select_for_update')
| -rw-r--r-- | tests/modeltests/select_for_update/tests.py | 4 |
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 |
