mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Use assertIsInstance in tests.
Gives much nicer errors when it fails.
This commit is contained in:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user