From f8b98f0edc501ca1ca2d04d1d5938cbb68d11db5 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Fri, 16 Mar 2018 10:21:13 -0400 Subject: Removed DatabaseFeatures.can_introspect_null. The only known usage is in the unmaintained django-pymssql project. --- tests/inspectdb/tests.py | 5 +---- tests/introspection/tests.py | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'tests') diff --git a/tests/inspectdb/tests.py b/tests/inspectdb/tests.py index 1ec520ace0..794ebc2660 100644 --- a/tests/inspectdb/tests.py +++ b/tests/inspectdb/tests.py @@ -104,10 +104,7 @@ class InspectDBTestCase(TestCase): if 'BooleanField' in null_bool_field_type: assertFieldType('null_bool_field', "models.{}()".format(null_bool_field_type)) else: - if connection.features.can_introspect_null: - assertFieldType('null_bool_field', "models.{}(blank=True, null=True)".format(null_bool_field_type)) - else: - assertFieldType('null_bool_field', "models.{}()".format(null_bool_field_type)) + assertFieldType('null_bool_field', "models.{}(blank=True, null=True)".format(null_bool_field_type)) if connection.features.can_introspect_decimal_field: assertFieldType('decimal_field', "models.DecimalField(max_digits=6, decimal_places=1)") diff --git a/tests/introspection/tests.py b/tests/introspection/tests.py index ce102fcdad..ed5556fc20 100644 --- a/tests/introspection/tests.py +++ b/tests/introspection/tests.py @@ -92,7 +92,6 @@ class IntrospectionTests(TransactionTestCase): [30, 30, 254] ) - @skipUnlessDBFeature('can_introspect_null') def test_get_table_description_nullable(self): with connection.cursor() as cursor: desc = connection.introspection.get_table_description(cursor, Reporter._meta.db_table) -- cgit v1.3