#7343: django.utils.functional.lazy fails for datetime.date.today
---------------------------------+--------------------------------------
Reporter: anonymous | Owner: nobody
Type: Bug | Status: closed
Component: Core (Other) | Version: SVN
Severity: Normal | Resolution: worksforme
Keywords: lazy functional | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Changes (by claudep):
* status: new => closed
* resolution: => worksforme
Comment:
In current code, this is passing with success:
{{{
import datetime
lazy_today = lazy(datetime.date.today, datetime.date)
self.assertEqual(lazy_today(), datetime.date.today())
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/7343#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.