#10988: timeuntil regressiontests fail
----------------------------+-----------------------------------------------
 Reporter:  gsong           |       Owner:  nobody    
   Status:  new             |   Milestone:            
Component:  Core framework  |     Version:  SVN       
 Keywords:                  |       Stage:  Unreviewed
Has_patch:  1               |  
----------------------------+-----------------------------------------------
 The doctests for `timeuntil` had extra spaces at the end, causing the
 tests to fail:

 {{{
 E:\blog\django\tests\regressiontests\utils>tests
 **********************************************************************
 File "E:\blog\django\tests\regressiontests\utils\tests.py", line 92, in
 __main__
 .__test__.timesince
 Failed example:
     timeuntil(today+oneday, today)
 Expected:
     u'1 day'
 Got:
     u'1 day'
 **********************************************************************
 File "E:\blog\django\tests\regressiontests\utils\tests.py", line 94, in
 __main__
 .__test__.timesince
 Failed example:
     timeuntil(today-oneday, today)
 Expected:
     u'0 minutes'
 Got:
     u'0 minutes'
 **********************************************************************
 File "E:\blog\django\tests\regressiontests\utils\tests.py", line 96, in
 __main__
 .__test__.timesince
 Failed example:
     timeuntil(today+oneweek, today)
 Expected:
     u'1 week'
 Got:
     u'1 week'
 **********************************************************************
 1 items had failures:
    3 of  47 in __main__.__test__.timesince
 ***Test Failed*** 3 failures.
 }}}

 The patch merely removes the extra spaces from the expected results.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10988>
Django <http://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
-~----------~----~----~----~------~----~------~--~---

Reply via email to