mirror of
https://github.com/django/django.git
synced 2025-11-25 13:13:28 +00:00
Fixed warnings per flake8 6.1.0.
This commit is contained in:
parent
4087367ba8
commit
22b0b73c77
3 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue