From 4a50daf6b343db1b5c316aa29efd657e160d0cd3 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Mon, 19 Oct 2015 19:52:55 -0400 Subject: [PATCH] Fixed #25562 -- Skipped a time dependent admin_filters test on Windows. --- tests/admin_filters/tests.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/admin_filters/tests.py b/tests/admin_filters/tests.py index f17928e4b1..8363a44192 100644 --- a/tests/admin_filters/tests.py +++ b/tests/admin_filters/tests.py @@ -1,6 +1,8 @@ from __future__ import unicode_literals import datetime +import sys +import unittest from django.contrib.admin import ( AllValuesFieldListFilter, BooleanFieldListFilter, ModelAdmin, @@ -381,6 +383,11 @@ class ListFiltersTests(TestCase): ) ) + @unittest.skipIf( + sys.platform.startswith('win'), + "Windows doesn't support setting a timezone that differs from the " + "system timezone." + ) @override_settings(USE_TZ=True) def test_datefieldlistfilter_with_time_zone_support(self): # Regression for #17830