diff options
author | Tim Graham <timograham@gmail.com> | 2016-01-21 08:05:16 -0500 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-01-21 08:07:09 -0500 |
commit | c9d1d5593b5533d970cc1d1fe918de72469920b5 (patch) | |
tree | b3a357c2e30b90437b2f878fad936b2a3b4d826b /tests/m2m_through | |
parent | cfe4ba6e905eefc7e53de37226e0f342a68dc47b (diff) | |
download | django-c9d1d5593b5533d970cc1d1fe918de72469920b5.tar.gz |
[1.9.x] Refs #26092 -- Added @skipUnlessDBFeature to a test.
Backport of fb4272f0e6bbdaa3e19ed5fde59fdb5ab5a33baf from master
Diffstat (limited to 'tests/m2m_through')
-rw-r--r-- | tests/m2m_through/tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/m2m_through/tests.py b/tests/m2m_through/tests.py index 5f5d78ea28..5193471653 100644 --- a/tests/m2m_through/tests.py +++ b/tests/m2m_through/tests.py @@ -3,7 +3,7 @@ from __future__ import unicode_literals from datetime import datetime from operator import attrgetter -from django.test import TestCase +from django.test import TestCase, skipUnlessDBFeature from .models import ( CustomMembership, Employee, Event, Friendship, Group, Ingredient, @@ -197,6 +197,7 @@ class M2mThroughTests(TestCase): attrgetter("name") ) + @skipUnlessDBFeature('supports_microsecond_precision') def test_order_by_relational_field_through_model(self): CustomMembership.objects.create(person=self.jim, group=self.rock) CustomMembership.objects.create(person=self.bob, group=self.rock) |