diff options
| author | Adam Avramov <fallenblood@gmail.com> | 2014-02-09 16:36:08 +0000 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-02-09 16:23:14 -0500 |
| commit | 651a6f76f30f4083dfa2a75c5acd86359c2fc4a2 (patch) | |
| tree | 068eed310cf2a6955549cec9133000554aeee80c | |
| parent | 12385a5f868ee697266756511a85434627ae7ca6 (diff) | |
Fixed #21992: Skipped test when pytz is missing.
The test fails on Windows when pytz is not installed.
| -rw-r--r-- | django/contrib/humanize/tests.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/django/contrib/humanize/tests.py b/django/contrib/humanize/tests.py index 4a58a64889..71ab2c8df0 100644 --- a/django/contrib/humanize/tests.py +++ b/django/contrib/humanize/tests.py @@ -162,8 +162,7 @@ class HumanizeTests(TestCase): # 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 |
