runTest argument to TestCase unusable

Bug #657760 reported by Jonathan Lange
6
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/tests/test_foo.py", line 165, in test_runner
    test = TestCase('test_something', runTest=runner)
  File "testtools/testcase.py", line 81, in __init__
    unittest.TestCase.__init__(self, *args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'runTest'

Note that the documentation for testtools.TestCase.__init__ says that it's acceptable to pass in runTest, and that this is currently the only documented way to use a different test runner.

Related branches

Jonathan Lange (jml)
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.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.