Opened 16 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)
Change History (3)
by , 16 years ago
Attachment: | 10988-test_utils_timesince-r10665.patch added |
---|
comment:1 by , 15 years ago
Triage Stage: | Unreviewed → Accepted |
---|
Note:
See TracTickets
for help on using tickets.
Patch to remove extra spaces in doctest