1
0
mirror of https://github.com/django/django.git synced 2025-10-26 23:26:08 +00:00

[1.7.x] Fixed #22653 -- Added some database feature flags to tests.

Thanks Rahul Priyadarshi.

Backport of 99f5ea9cc8 from master
This commit is contained in:
Tim Graham
2014-06-11 11:45:18 -04:00
parent 7bd2ad1dd9
commit 45e47f7b95
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