mirror of
https://github.com/django/django.git
synced 2025-08-30 23:37:50 +00:00
Use assertIsInstance in tests.
Gives much nicer errors when it fails.
This commit is contained in:
parent
18856f866c
commit
09f8652765
31 changed files with 87 additions and 87 deletions
|
@ -172,7 +172,7 @@ class LastExecutedQueryTest(TestCase):
|
|||
sql, params = persons.query.sql_with_params()
|
||||
cursor = persons.query.get_compiler('default').execute_sql(None)
|
||||
last_sql = cursor.db.ops.last_executed_query(cursor, sql, params)
|
||||
self.assertTrue(isinstance(last_sql, six.text_type))
|
||||
self.assertIsInstance(last_sql, six.text_type)
|
||||
|
||||
@unittest.skipUnless(connection.vendor == 'sqlite',
|
||||
"This test is specific to SQLite.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue