Author: jacob
Date: 2008-09-01 12:22:34 -0500 (Mon, 01 Sep 2008)
New Revision: 8799

Modified:
   django/trunk/tests/regressiontests/datatypes/models.py
Log:
A failing test for #8354

Modified: django/trunk/tests/regressiontests/datatypes/models.py
===================================================================
--- django/trunk/tests/regressiontests/datatypes/models.py      2008-09-01 
13:28:22 UTC (rev 8798)
+++ django/trunk/tests/regressiontests/datatypes/models.py      2008-09-01 
17:22:34 UTC (rev 8799)
@@ -82,4 +82,11 @@
 >>> Donut.objects.filter(consumed_at__year=2008)
 []
 
+# TZ-aware datetimes (#8354).
+>>> from django.utils import tzinfo
+>>> dt = datetime.datetime(2008, 8, 31, 16, 20, tzinfo=tzinfo.FixedOffset(0))
+>>> d = Donut(name='Bear claw', consumed_at=dt)
+>>> d.save()
+>>> Donut.objects.filter(consumed_at=dt)
+[<Donut: Bear claw>]
 """}


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to