test suite for iso_strptime fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| wadllib |
High
|
Unassigned | ||
| python-wadllib (Ubuntu) |
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?
Martin Pitt (pitti) wrote : | #1 |
Martin Pitt (pitti) wrote : | #2 |
So it's both <type 'time.struct_
Changed in python-wadllib (Ubuntu): | |
assignee: | nobody → pitti |
status: | New → In Progress |
Martin Pitt (pitti) wrote : | #3 |
With this patch, the testsuite works for both 2.5 and 2.6.
Changed in wadllib: | |
status: | New → Confirmed |
Launchpad Janitor (janitor) wrote : | #4 |
This bug was fixed in the package python-wadllib - 0.1~bzr7-0ubuntu4
---------------
python-wadllib (0.1~bzr7-0ubuntu4) jaunty; urgency=low
* debian/control: Bump python-nose build dependency to >= 0.10.4, which is
compatible with Python 2.6. (See LP #337585)
* debian/rules: Enable the test suite again.
* wadllib/
with Python 2.6. (LP: #344166)
-- Martin Pitt <email address hidden> Tue, 17 Mar 2009 11:38:30 +0100
Changed in python-wadllib: | |
status: | In Progress → Fix Released |
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)