mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[4.2.x] Fixed warnings per flake8 6.1.0.
Backport of 22b0b73c77 from main
			
			
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