[patch] The tests for date-based generic views fail in november
|Reported by:||brutasse||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
In tests/regressiontests/views/tests/generic/date_based.py, line 103:
There is a typo in the prev_month calculation: if the current month is November, then it gets back to the previous year, which should happen in January and not in November.
This behavior makes the test suite fail in November. See the attached trivial patch.
Change History (5)
Changed 7 years ago by brutasse
comment:1 Changed 7 years ago by kmtracey
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted