summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShai Berger <shai@platonix.com>2013-08-15 03:30:51 +0300
committerShai Berger <shai@platonix.com>2013-08-17 23:12:01 +0300
commitd9dc98159d0454d74aebec3e9a763ddecea0961e (patch)
tree3def6607c75fb331b728b3e7dd23e437d1edd085
parentd5da495a2edc741b6496821baa0d6bcee9dce9bb (diff)
[1.4.x] Fixed #20904: Test failure on Oracle
Just skip the failing test, the failure isn't really relevant; also, both the test and the reason for its failure were removed in 1.5. Thanks Tim Graham for advice on 1.5.
-rw-r--r--tests/regressiontests/test_runner/tests.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/regressiontests/test_runner/tests.py b/tests/regressiontests/test_runner/tests.py
index 22e9fe6af5..7f54522bca 100644
--- a/tests/regressiontests/test_runner/tests.py
+++ b/tests/regressiontests/test_runner/tests.py
@@ -10,7 +10,7 @@ import warnings
from django.core.exceptions import ImproperlyConfigured
from django.core.management import call_command
from django import db
-from django.test import simple
+from django.test import simple, skipIfDBFeature
from django.test.simple import DjangoTestSuiteRunner, get_tests
from django.test.testcases import connections_support_transactions
from django.test.utils import get_warnings_state, restore_warnings_state
@@ -217,6 +217,13 @@ class CustomTestRunnerOptionsTests(AdminScriptTestCase):
class Ticket16885RegressionTests(unittest.TestCase):
+
+ # Skipped if empty strings are nulls because this feature causes
+ # database setup to fail on model validation for models defined
+ # with string PKs (such models are already in the AppCache), while
+ # the test cares neither about models nor about the database backend
+ # from settings.
+ @skipIfDBFeature('interprets_empty_strings_as_nulls')
def test_ticket_16885(self):
"""Features are also confirmed on mirrored databases."""
old_db_connections = db.connections