diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2019-11-06 06:14:30 -0800 |
---|---|---|
committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2019-11-06 15:14:30 +0100 |
commit | 39791c8e6de3a71879eb26dd9f8d01273847f395 (patch) | |
tree | 4de3a588b3098cd51f5a5ae0b1830d36a57a1ab3 /tests/timezones | |
parent | e3c2fae4cd549a6aeefcf7b217ba4b173489e18c (diff) | |
download | django-39791c8e6de3a71879eb26dd9f8d01273847f395.tar.gz |
Harmonized Windows checks in tests to a single style.
Diffstat (limited to 'tests/timezones')
-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. |