-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass through arguments for
TextTestRunner
with **kwargs
* This ensures `XMLTestRunner.__init__` compatible with `TextTestRunner.__init__`.
- Loading branch information
Showing
1 changed file
with
5 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79621f3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this works fine for python2
as for python3 when initialyzing resultclass to my Abstract runner we get an exception:
-> runner = xmlrunner.XMLTestRunner(output=xml_dir, verbosity=2, resultclass=AbstractXmlRunnerTestCase.TestResultForRunner)
(Pdb) s
TypeError: init() got an unexpected keyword argument 'resultclass'
the init() in python3 don't have resultclass property, and python2 runner.py + result.py classes are both in xmlrunner.py