﻿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
21756	utils_tests.test_dateformat.DateFormatTests failing on Windows with pytz installed	Michael Manfre	Aymeric Augustin	"Running {{{python runtests.py --noinput --settings=test_sqlite utils_tests.test_dateformat}}}

With pytz installed:

{{{
======================================================================
FAIL: test_datetime_with_local_tzinfo (utils_tests.test_dateformat.DateFormatTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ""D:\project\django\django\tests\utils_tests\test_dateformat.py"", line 38, in test_datetime_with_local_tzinfo
    self.assertEqual(datetime.fromtimestamp(int(format(dt, 'U'))), dt.replace(tzinfo=None))
AssertionError: datetime.datetime(2009, 5, 15, 23, 30, 30) != datetime.datetime(2009, 5, 16, 5, 30, 30)

======================================================================
FAIL: test_datetime_with_tzinfo (utils_tests.test_dateformat.DateFormatTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ""D:\project\django\django\tests\utils_tests\test_dateformat.py"", line 47, in test_datetime_with_tzinfo
    self.assertEqual(datetime.fromtimestamp(int(format(dt, 'U'))), dt.astimezone(ltz).replace(tzinfo=None))
AssertionError: datetime.datetime(2009, 5, 15, 23, 30, 30) != datetime.datetime(2009, 5, 16, 5, 30, 30)

----------------------------------------------------------------------
Ran 13 tests in 0.134s

FAILED (failures=2)
}}}

With pytz uninstalled:

{{{
Creating test database for alias 'default'...
Creating test database for alias 'other'...
.............
----------------------------------------------------------------------
Ran 13 tests in 0.013s

OK
}}}"	Bug	closed	Utilities	dev	Release blocker	fixed	timezone tzinfo		Accepted	0	0	0	0	0	0
