Merge lp:~chipaca/testscenarios/fix-with-py3 into lp:~testtools-committers/testscenarios/trunk
Proposed by
John Lenton
Status: | Merged | ||||
---|---|---|---|---|---|
Merge reported by: | Robert Collins | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp:~chipaca/testscenarios/fix-with-py3 | ||||
Merge into: | lp:~testtools-committers/testscenarios/trunk | ||||
Diff against target: |
77 lines (+11/-6) 3 files modified
README (+6/-3) lib/testscenarios/scenarios.py (+3/-2) setup.py (+2/-1) |
||||
To merge this branch: | bzr merge lp:~chipaca/testscenarios/fix-with-py3 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Robert Collins | Needs Resubmitting | ||
John Vandenberg (community) | Approve | ||
Review via email: mp+105447@code.launchpad.net |
Description of the change
Fix for big justice with python 3.
Fairly straightforward. The only hairy bit is the use of StringIO.StringIO vs io.BytesIO and io.StringIO in the docstring, versus unittest.runner's writing a bare "." to the stream in both python 2 and 3. Resolved with some import shenanigans.
To post a comment you must log in.
I think this should be merged. I have tested setup.py and 'make check' with Python 3.2, 3.3 and 3.4.
There are two tests with fail on Python 3, due to the addition of '.<locals>.' in the name of local objects. However that only affects the visual UI, and is arguably correct. I have a separate patch for that; will try to figure out how to upload load that to launchpad.
For Python 3.1.5 (officially retired anyway), unittest2-1.0.1 fails, and testtools depends on that.
NameError: global name 'callable' is not defined