Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit 3b2c53ac6972ae970d6634693d6fd05a4fa169e0 1 parent 3576c99
Ramiro Morales authored March 03, 2012
6  tests/regressiontests/introspection/tests.py
@@ -3,7 +3,7 @@
3 3
 from functools import update_wrapper
4 4
 
5 5
 from django.db import connection
6  
-from django.test import TestCase, skipUnlessDBFeature
  6
+from django.test import TestCase, skipUnlessDBFeature, skipIfDBFeature
7 7
 
8 8
 from .models import Reporter, Article
9 9
 
@@ -89,6 +89,10 @@ def test_get_table_description_types(self):
89 89
             ['IntegerField', 'CharField', 'CharField', 'CharField', 'BigIntegerField']
90 90
         )
91 91
 
  92
+    # Oracle forces null=True under the hood in some cases (see
  93
+    # https://docs.djangoproject.com/en/dev/ref/databases/#null-and-empty-strings)
  94
+    # so its idea about null_ok in cursor.drescription is different from ours
  95
+    @skipIfDBFeature('interprets_empty_strings_as_nulls')
92 96
     def test_get_table_description_nullable(self):
93 97
         cursor = connection.cursor()
94 98
         desc = connection.introspection.get_table_description(cursor, Reporter._meta.db_table)

0 notes on commit 3b2c53a

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