diff --git a/tests/schema/tests.py b/tests/schema/tests.py index ee93de8596..53e67b5647 100644 --- a/tests/schema/tests.py +++ b/tests/schema/tests.py @@ -1196,4 +1196,4 @@ class SchemaTests(TransactionTestCase): with connection.cursor() as cursor: cursor.execute("SELECT surname FROM schema_author;") item = cursor.fetchall()[0] - self.assertEqual(item[0], '') + self.assertEqual(item[0], None if connection.features.interprets_empty_strings_as_nulls else '')