#18217: Date-based generic views use naive datetime objects
-------------------------------------+-------------------------------------
Reporter: yumike | Owner: aaugustin
Type: Bug | Status: reopened
Component: Generic views | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
Has patch: 0 | checkin
Needs tests: 0 | Needs documentation: 0
Easy pickings: 0 | Patch needs improvement: 0
| UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by aaugustin):
I tried backporting both changesets and still I got two test failures.
{{{
======================================================================
FAIL: test_aware_datetime_date_detail
(regressiontests.generic_views.dates.DateDetailViewTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/myk/Documents/dev/django-trunk/django/test/utils.py", line
205, in inner
return test_func(*args, **kwargs)
File "/Users/myk/Documents/dev/django-
trunk/tests/regressiontests/generic_views/dates.py", line 530, in
test_aware_datetime_date_detail
self.assertEqual(res.status_code, 200)
AssertionError: 404 != 200
======================================================================
FAIL: test_aware_datetime_day_view
(regressiontests.generic_views.dates.DayArchiveViewTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/myk/Documents/dev/django-trunk/django/test/utils.py", line
205, in inner
return test_func(*args, **kwargs)
File "/Users/myk/Documents/dev/django-
trunk/tests/regressiontests/generic_views/dates.py", line 456, in
test_aware_datetime_day_view
self.assertEqual(res.status_code, 200)
AssertionError: 404 != 200
}}}
Warnings can be silenced with `warnings.filterwarnings` if they really
bother you, until you upgrade to Django 1.5...
--
Ticket URL: <https://code.djangoproject.com/ticket/18217#comment:10>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.