﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
19203	"Test failing when pytz not installed and not in ""America/Chicago"""	Łukasz Rekucki	Aymeric Augustin	"{{{
======================================================================
FAIL: test_naturalday_uses_localtime (django.contrib.humanize.tests.HumanizeTest
s)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ""c:\Users\lrekucki\Documents\GitHub\django\django\contrib\humanize\tests.
py"", line 152, in test_naturalday_uses_localtime
    self.humanize_tester([dt], ['yesterday'], 'naturalday')
  File ""c:\Users\lrekucki\Documents\GitHub\django\django\contrib\humanize\tests.
py"", line 40, in humanize_tester
    msg=""%s test failed, produced '%s', should've produced '%s'"" % (method, rend
ered, result))
AssertionError: naturalday test failed, produced 'today', should've produced 'ye
sterday'

----------------------------------------------------------------------
Ran 1 test in 1.305s
}}}

The problem is within `get_default_timezone()`, which returns `LocalTimezone` if there is no pytz installed. For me this is GMT+1 instead of asserted GMT-6, so the day stays the same. I think the test should just override the active timezone."	Uncategorized	closed	contrib.humanize	1.4	Normal	fixed			Unreviewed	0	0	0	0	0	0
