Marked a test as expected failure. Refs #19884

This commit is contained in:
Anssi Kääriäinen 2013-02-22 22:02:45 +02:00
parent 88c726bea0
commit f565c6f999
1 changed files with 7 additions and 0 deletions

View File

@ -5,8 +5,13 @@ import re
from django.core.management import call_command from django.core.management import call_command
from django.db import connection from django.db import connection
from django.test import TestCase, skipUnlessDBFeature from django.test import TestCase, skipUnlessDBFeature
from django.utils.unittest import expectedFailure
from django.utils.six import StringIO from django.utils.six import StringIO
if connection.vendor == 'oracle':
expectedFailureOnOracle = expectedFailure
else:
expectedFailureOnOracle = lambda f: f
class InspectDBTestCase(TestCase): class InspectDBTestCase(TestCase):
@ -23,6 +28,8 @@ class InspectDBTestCase(TestCase):
# inspected # inspected
self.assertNotIn("class DjangoContentType(models.Model):", out.getvalue(), msg=error_message) self.assertNotIn("class DjangoContentType(models.Model):", out.getvalue(), msg=error_message)
# Inspecting oracle DB doesn't produce correct results, see #19884
@expectedFailureOnOracle
def test_field_types(self): def test_field_types(self):
"""Test introspection of various Django field types""" """Test introspection of various Django field types"""
out = StringIO() out = StringIO()