Skip to content
Browse files

Modified a test added in r17508 to not run under Oracle.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 3576c99 commit 3b2c53ac6972ae970d6634693d6fd05a4fa169e0 @ramiro ramiro committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 tests/regressiontests/introspection/
6 tests/regressiontests/introspection/
@@ -3,7 +3,7 @@
from functools import update_wrapper
from django.db import connection
-from django.test import TestCase, skipUnlessDBFeature
+from django.test import TestCase, skipUnlessDBFeature, skipIfDBFeature
from .models import Reporter, Article
@@ -89,6 +89,10 @@ def test_get_table_description_types(self):
['IntegerField', 'CharField', 'CharField', 'CharField', 'BigIntegerField']
+ # Oracle forces null=True under the hood in some cases (see
+ #
+ # so its idea about null_ok in cursor.drescription is different from ours
+ @skipIfDBFeature('interprets_empty_strings_as_nulls')
def test_get_table_description_nullable(self):
cursor = connection.cursor()
desc = connection.introspection.get_table_description(cursor, Reporter._meta.db_table)

0 comments on commit 3b2c53a

Please sign in to comment.
Something went wrong with that request. Please try again.