summaryrefslogtreecommitdiff
path: root/tests/serializers
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-06-11 11:45:18 -0400
committerTim Graham <timograham@gmail.com>2014-06-11 11:48:57 -0400
commit45e47f7b95aad98d91bb40e19dda14ae120980a4 (patch)
treeed3c93e8531bf4880b00677ba64685a635694a8e /tests/serializers
parent7bd2ad1dd9fc449ed1b4832fab5c975d7c8aa895 (diff)
[1.7.x] Fixed #22653 -- Added some database feature flags to tests.
Thanks Rahul Priyadarshi. Backport of 99f5ea9cc8 from master
Diffstat (limited to 'tests/serializers')
-rw-r--r--tests/serializers/tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/serializers/tests.py b/tests/serializers/tests.py
index 6433101878..4be0e6e322 100644
--- a/tests/serializers/tests.py
+++ b/tests/serializers/tests.py
@@ -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