diff options
author | Shai Berger <shai@platonix.com> | 2014-06-14 00:43:49 +0300 |
---|---|---|
committer | Shai Berger <shai@platonix.com> | 2014-06-14 00:43:49 +0300 |
commit | 612290400f79fb2293a6a0b0cfa5743ab0cef6b1 (patch) | |
tree | 57ebf297457e401e4e1ee363eeb6fc14475181c6 /tests/introspection/tests.py | |
parent | 06c0e740a41f64a49a11569e76edee7be04770e0 (diff) | |
download | django-612290400f79fb2293a6a0b0cfa5743ab0cef6b1.tar.gz |
Fixed #22816 -- Corrected Oracle feature flag and fixed introspection test
Diffstat (limited to 'tests/introspection/tests.py')
-rw-r--r-- | tests/introspection/tests.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/introspection/tests.py b/tests/introspection/tests.py index 432658c21f..03962b33bf 100644 --- a/tests/introspection/tests.py +++ b/tests/introspection/tests.py @@ -73,15 +73,14 @@ class IntrospectionTests(TestCase): [30, 30, 75] ) - # The following test fails on Oracle. Since it forces null=True under the - # hood in some cases, its idea about null_ok is different from ours. @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) + nullable_by_backend = connection.features.interprets_empty_strings_as_nulls self.assertEqual( [r[6] for r in desc], - [False, False, False, False, True, True] + [False, nullable_by_backend, nullable_by_backend, nullable_by_backend, True, True] ) # Regression test for #9991 - 'real' types in postgres |