[patch] The tests for date-based generic views fail in november
|Reported by:||Bruno Renié||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.