From fb4272f0e6bbdaa3e19ed5fde59fdb5ab5a33baf Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 21 Jan 2016 08:05:16 -0500 Subject: [PATCH] Refs #26092 -- Added @skipUnlessDBFeature to a test. --- tests/m2m_through/tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/m2m_through/tests.py b/tests/m2m_through/tests.py index 40753e0fe1..910785ba19 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, @@ -198,6 +198,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)