summaryrefslogtreecommitdiff
path: root/tests/regressiontests
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2008-09-01 17:22:34 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2008-09-01 17:22:34 +0000
commit429c87fef81f12fa0b6e3e8cf20ae06c67ca7e4d (patch)
tree0b8fa1b5bc358159d82d5fc8238515c0fad660c8 /tests/regressiontests
parent3686fc189ad0867785edd8bae3061ccb5c45553d (diff)
A failing test for #8354
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8799 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests')
-rw-r--r--tests/regressiontests/datatypes/models.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/regressiontests/datatypes/models.py b/tests/regressiontests/datatypes/models.py
index 9ebb6402e2..32f7f3e294 100644
--- a/tests/regressiontests/datatypes/models.py
+++ b/tests/regressiontests/datatypes/models.py
@@ -82,4 +82,11 @@ datetime.datetime(2007, 4, 20, 16, 19, 59)
>>> 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>]
"""}