runTest argument to TestCase unusable
Bug #657760 reported by
Jonathan Lange
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
testtools |
Fix Released
|
Critical
|
Jonathan Lange |
Bug Description
If you pass 'runTest' in to the constructor of testtools.TestCase, you'll get a TypeError, since the runTest keyword argument is passed upwards to unittest.TestCase.
Traceback (most recent call last):
File "testtools/
test = TestCase(
File "testtools/
unittest.
TypeError: __init__() got an unexpected keyword argument 'runTest'
Note that the documentation for testtools.
Related branches
lp:~jml/testtools/deferred-support
- testtools developers: Pending requested
-
Diff: 1846 lines (+1580/-38)12 files modifiedMANUAL (+50/-10)
NEWS (+9/-0)
testtools/__init__.py (+2/-0)
testtools/_spinner.py (+280/-0)
testtools/deferredruntest.py (+234/-0)
testtools/runtest.py (+14/-12)
testtools/testcase.py (+53/-14)
testtools/tests/__init__.py (+4/-0)
testtools/tests/test_deferredruntest.py (+531/-0)
testtools/tests/test_runtest.py (+95/-0)
testtools/tests/test_spinner.py (+306/-0)
testtools/tests/test_testresult.py (+2/-2)
lp:~jml/testtools/run-test-improvements
- Robert Collins: Approve
-
Diff: 390 lines (+219/-23)6 files modifiedMANUAL (+35/-10)
NEWS (+6/-0)
testtools/__init__.py (+2/-0)
testtools/testcase.py (+59/-11)
testtools/tests/test_runtest.py (+115/-0)
testtools/tests/test_testresult.py (+2/-2)
Changed in testtools: | |
assignee: | nobody → Jonathan Lange (jml) |
status: | Triaged → In Progress |
status: | In Progress → Fix Committed |
milestone: | none → next |
Changed in testtools: | |
importance: | High → Critical |
Changed in testtools: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.