Ticket #8354: failing-test.patch

File failing-test.patch, 623 bytes (added by Jacob, 16 years ago)
  • tests/regressiontests/datatypes/models.py

    diff --git a/tests/regressiontests/datatypes/models.py b/tests/regressiontests/datatypes/models.py
    index 9ebb640..32f7f3e 100644
    a b datetime.datetime(2007, 4, 20, 16, 19, 59)  
    8282>>> Donut.objects.filter(consumed_at__year=2008)
    8383[]
    8484
     85# TZ-aware datetimes (#8354).
     86>>> from django.utils import tzinfo
     87>>> dt = datetime.datetime(2008, 8, 31, 16, 20, tzinfo=tzinfo.FixedOffset(0))
     88>>> d = Donut(name='Bear claw', consumed_at=dt)
     89>>> d.save()
     90>>> Donut.objects.filter(consumed_at=dt)
     91[<Donut: Bear claw>]
    8592"""}
Back to Top