Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #21992: Skipped test when pytz is missing.

The test fails on Windows when pytz is not installed.
  • Loading branch information...
commit 651a6f76f30f4083dfa2a75c5acd86359c2fc4a2 1 parent 12385a5
@egasimus egasimus authored timgraham committed
Showing with 1 addition and 2 deletions.
  1. +1 −2  django/contrib/humanize/tests.py
View
3  django/contrib/humanize/tests.py
@@ -162,8 +162,7 @@ def test_naturalday_tz(self):
# As 24h of difference they will never be the same
self.assertNotEqual(naturalday_one, naturalday_two)
- @skipIf(settings.TIME_ZONE != "America/Chicago" and pytz is None,
- "this test requires pytz when a non-default time zone is set")
+ @skipIf(pytz is None, "this test requires pytz")
def test_naturalday_uses_localtime(self):
# Regression for #18504
# This is 2012-03-08HT19:30:00-06:00 in America/Chicago
Please sign in to comment.
Something went wrong with that request. Please try again.