Fixed #22653 -- Added some database feature flags to tests.

Thanks Rahul Priyadarshi.
This commit is contained in:
Tim Graham 2014-06-11 11:45:18 -04:00
parent 5a3ae7e260
commit 99f5ea9cc8
4 changed files with 7 additions and 2 deletions

View file

@ -16,7 +16,7 @@ except ImportError:
from django.core import management, serializers
from django.db import transaction, connection
from django.test import TestCase, TransactionTestCase, override_settings
from django.test import TestCase, TransactionTestCase, override_settings, skipUnlessDBFeature
from django.test.utils import Approximate
from django.utils import six
from django.utils.six import StringIO
@ -267,6 +267,7 @@ class SerializersTransactionTestBase(object):
available_apps = ['serializers']
@skipUnlessDBFeature('supports_forward_references')
def test_forward_refs(self):
"""
Tests that objects ids can be referenced before they are