#471: WebComment: crash in start date unit test
------------------------+---------------------------------------------------
Reporter: simko | Owner:
Type: defect | Status: new
Priority: blocker | Milestone: v1.0
Component: WebComment | Version:
Keywords: |
------------------------+---------------------------------------------------
At this particular runtime (Mon Jan 31 23:25:51 CET 2011), the following
unit test crashes:
{{{
======================================================================
ERROR: webcomment - calculate_start_date, various random values
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-
packages/invenio/webcomment_tests.py", line 43, in test_with_random_values
self.assert_(calculate_start_date('6m') > '2009-01-09 14:51:10')
File "/usr/local/lib/python2.6/dist-packages/invenio/webcomment.py",
line 1226, in calculate_start_date
yesterday = today.replace(year=final_nb_year, month=nb_month)
ValueError: day is out of range for month
}}}
--
Ticket URL: <http://invenio-software.org/ticket/471>
Invenio <http://invenio-software.org>