mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed warnings per flake8 6.1.0.
This commit is contained in:
@@ -242,7 +242,7 @@ class SchemaTests(TransactionTestCase):
|
||||
"SELECT {} FROM {};".format(field_name, model._meta.db_table)
|
||||
)
|
||||
database_default = cursor.fetchall()[0][0]
|
||||
if cast_function and type(database_default) != type(expected_default):
|
||||
if cast_function and type(database_default) is not type(expected_default):
|
||||
database_default = cast_function(database_default)
|
||||
self.assertEqual(database_default, expected_default)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user