Opened 15 years ago

Closed 15 years ago

#10988 closed (fixed)

timeuntil regressiontests fail

Reported by: George Song Owned by: nobody
Component: Core (Other) Version: dev
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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.

Attachments (1)

10988-test_utils_timesince-r10665.patch (543 bytes ) - added by George Song 15 years ago.
Patch to remove extra spaces in doctest

Download all attachments as: .zip

Change History (3)

by George Song, 15 years ago

Patch to remove extra spaces in doctest

comment:1 by Alex Gaynor, 15 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Chris Beaven, 15 years ago

Resolution: fixed
Status: newclosed

Seems fine in r11453

Note: See TracTickets for help on using tickets.
Back to Top