#27637: timeuntil, timesince breaks in leap year edge case
-------------------------------------+------------------------------------
     Reporter:  felixxm              |                    Owner:  felixxm
         Type:  Bug                  |                   Status:  new
    Component:  Utilities            |                  Version:  1.9
     Severity:  Release blocker      |               Resolution:
     Keywords:  timeuntil timesince  |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+------------------------------------
Changes (by Tim Graham):

 * status:  closed => new
 * has_patch:  1 => 0
 * resolution:  fixed =>


Comment:

 There's still a regression on the last day of a leap year (I think).
 Here's the failure:
 {{{
 ======================================================================
 FAIL [0.001s]: test_date_objects
 (utils_tests.test_timesince.TimesinceTests)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/home/jenkins/workspace/pull-requests-
 trusty/database/sqlite3/label/trusty-
 pr/python/python2.7/tests/utils_tests/test_timesince.py", line 98, in
 test_date_objects
     self.assertEqual(timesince(today + self.oneday), '0\xa0minutes')
 AssertionError: u'9\xa0hours, 56\xa0minutes' != u'0\xa0minutes'
 - 9\xa0hours, 56\xa0minutes
 + 0\xa0minutes
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/27637#comment:6>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.c258ab4917572b4a4071c5601681a98a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to