mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[1.8.x] Fixed #25562 -- Skipped a time dependent admin_filters test on Windows.
Backport of 4a50daf6b3 from master
			
			
This commit is contained in:
		| @@ -1,6 +1,8 @@ | |||||||
| from __future__ import unicode_literals | from __future__ import unicode_literals | ||||||
|  |  | ||||||
| import datetime | import datetime | ||||||
|  | import sys | ||||||
|  | import unittest | ||||||
|  |  | ||||||
| from django.contrib.admin import ( | from django.contrib.admin import ( | ||||||
|     AllValuesFieldListFilter, BooleanFieldListFilter, ModelAdmin, |     AllValuesFieldListFilter, BooleanFieldListFilter, ModelAdmin, | ||||||
| @@ -351,6 +353,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) |     @override_settings(USE_TZ=True) | ||||||
|     def test_datefieldlistfilter_with_time_zone_support(self): |     def test_datefieldlistfilter_with_time_zone_support(self): | ||||||
|         # Regression for #17830 |         # Regression for #17830 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user