test suite for iso_strptime fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wadllib |
Triaged
|
High
|
Unassigned | ||
python-wadllib (Ubuntu) |
Fix Released
|
Undecided
|
Martin Pitt |
Bug Description
If I try to build r7 of wadllib on current Jaunty, the test suite (and thus the build) fails:
Doctest: wadllib.txt ... ok
Doctest: wadllib.
=======
FAIL: Doctest: wadllib.
-------
Traceback (most recent call last):
File "/usr/lib/
raise self.failureExc
AssertionError: Failed doctest test for wadllib.
File "/home/
-------
File "/home/
Failed example:
d.timetuple()
Expected:
(2008, 1, 7, 5, 30, 30, 0, 7, 0)
Got:
time.
-------
File "/home/
Failed example:
d.utctimetu
Expected:
(2008, 1, 7, 2, 30, 30, 0, 7, 0)
Got:
time.
-------
Ran 2 tests in 0.513s
That smells like another Python 2.6 change?
Changed in python-wadllib (Ubuntu): | |
assignee: | nobody → pitti |
status: | New → In Progress |
Changed in wadllib: | |
status: | Confirmed → Triaged |
importance: | Undecided → High |
tags: | added: patch trivial |
$ python2.6 -c 'import datetime; print datetime. datetime( 2008, 1, 7, 5, 30, 30, 345323) .timetuple( )' time(tm_ year=2008, tm_mon=1, tm_mday=7, tm_hour=5, tm_min=30, tm_sec=30, tm_wday=0, tm_yday=7, tm_isdst=-1)
time.struct_
$ python2.5 -c 'import datetime; print datetime. datetime( 2008, 1, 7, 5, 30, 30, 345323) .timetuple( )'
(2008, 1, 7, 5, 30, 30, 0, 7, -1)