summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRamiro Morales <cramm0@gmail.com>2012-03-03 17:16:43 +0000
committerRamiro Morales <cramm0@gmail.com>2012-03-03 17:16:43 +0000
commit3b2c53ac6972ae970d6634693d6fd05a4fa169e0 (patch)
treed7293f6b4db959e54094ed3c8148a4fd126c1283
parent3576c99f745d421d3728992f82dd0158243968a2 (diff)
Modified a test added in r17508 to not run under Oracle.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17638 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--tests/regressiontests/introspection/tests.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/regressiontests/introspection/tests.py b/tests/regressiontests/introspection/tests.py
index c3d3533f94..78928a15c4 100644
--- a/tests/regressiontests/introspection/tests.py
+++ b/tests/regressiontests/introspection/tests.py
@@ -3,7 +3,7 @@ from __future__ import absolute_import
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 @@ class IntrospectionTests(TestCase):
['IntegerField', 'CharField', 'CharField', 'CharField', 'BigIntegerField']
)
+ # Oracle forces null=True under the hood in some cases (see
+ # https://docs.djangoproject.com/en/dev/ref/databases/#null-and-empty-strings)
+ # 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)