From 4b4c7045179ec4c0d9dc15c6518d5defd33b41aa Mon Sep 17 00:00:00 2001 From: Shai Berger Date: Thu, 13 Mar 2014 00:25:10 +0200 Subject: [PATCH] Skip test for saving microseconds on backends which do not support it. --- tests/model_fields/tests.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/model_fields/tests.py b/tests/model_fields/tests.py index c8b46d8c2f..421672e4d2 100644 --- a/tests/model_fields/tests.py +++ b/tests/model_fields/tests.py @@ -197,6 +197,7 @@ class DateTimeFieldTests(unittest.TestCase): self.assertEqual(f.to_python('01:02:03.999999'), datetime.time(1, 2, 3, 999999)) + @test.skipUnlessDBFeature("supports_microsecond_precision") def test_datetimes_save_completely(self): dat = datetime.date(2014, 3, 12) datetim = datetime.datetime(2014, 3, 12, 21, 22, 23, 240000)