summaryrefslogtreecommitdiff
path: root/tests/admin_filters
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-10-19 19:52:55 -0400
committerTim Graham <timograham@gmail.com>2015-10-19 20:26:33 -0400
commit4a50daf6b343db1b5c316aa29efd657e160d0cd3 (patch)
tree63e8ca71e8b9ce6b9c5ca14852947fe5e80f5ebe /tests/admin_filters
parent2ee67f0373944f8860dfd91d2c997d45d50539b3 (diff)
downloaddjango-4a50daf6b343db1b5c316aa29efd657e160d0cd3.tar.gz
Fixed #25562 -- Skipped a time dependent admin_filters test on Windows.
Diffstat (limited to 'tests/admin_filters')
-rw-r--r--tests/admin_filters/tests.py7
1 files changed, 7 insertions, 0 deletions
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