diff options
Diffstat (limited to 'tests/timezones/tests.py')
| -rw-r--r-- | tests/timezones/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/timezones/tests.py b/tests/timezones/tests.py index e57e12d6c4..a317af5a55 100644 --- a/tests/timezones/tests.py +++ b/tests/timezones/tests.py @@ -969,7 +969,7 @@ class TemplateTests(SimpleTestCase): with self.assertRaises(pytz.UnknownTimeZoneError): Template("{% load tz %}{% timezone tz %}{% endtimezone %}").render(Context({'tz': 'foobar'})) - @skipIf(sys.platform.startswith('win'), "Windows uses non-standard time zone names") + @skipIf(sys.platform == 'win32', "Windows uses non-standard time zone names") def test_get_current_timezone_templatetag(self): """ Test the {% get_current_timezone %} templatetag. @@ -1009,7 +1009,7 @@ class TemplateTests(SimpleTestCase): with self.assertRaisesMessage(TemplateSyntaxError, msg): Template("{% load tz %}{% get_current_timezone %}").render() - @skipIf(sys.platform.startswith('win'), "Windows uses non-standard time zone names") + @skipIf(sys.platform == 'win32', "Windows uses non-standard time zone names") def test_tz_template_context_processor(self): """ Test the django.template.context_processors.tz template context processor. |
