Skipped a test on Oracle

This commit is contained in:
Anssi Kääriäinen 2013-02-22 20:59:11 +02:00
parent ce094e570e
commit 88c726bea0
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
from django.db.models import Q from django.db.models import Q
from django.db.utils import IntegrityError from django.db.utils import IntegrityError
from django.test import TestCase from django.test import TestCase, skipIfDBFeature
from .models import (Address, Place, Restaurant, Link, CharLink, TextLink, from .models import (Address, Place, Restaurant, Link, CharLink, TextLink,
Person, Contact, Note, Organization, OddRelation1, OddRelation2, Company, Person, Contact, Note, Organization, OddRelation1, OddRelation2, Company,
@ -127,6 +127,7 @@ class GenericRelationTests(TestCase):
note = Note(note='Note for guild', content_object=g1) note = Note(note='Note for guild', content_object=g1)
note.save() note.save()
@skipIfDBFeature('interprets_empty_strings_as_nulls')
def test_gfk_to_model_with_empty_pk(self): def test_gfk_to_model_with_empty_pk(self):
"""Test related to #13085""" """Test related to #13085"""
# Saving model with GenericForeignKey to model instance with an # Saving model with GenericForeignKey to model instance with an