We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9677b41 commit a227ba2Copy full SHA for a227ba2
xmlrunner/runner.py
@@ -3,6 +3,8 @@
3
import sys
4
import time
5
6
+import six
7
+
8
from .unittest import TextTestRunner, TestProgram
9
from .result import _XMLTestResult
10
@@ -17,8 +19,10 @@ class XMLTestRunner(TextTestRunner):
17
19
"""
18
20
def __init__(self, output='.', outsuffix=None,
21
elapsed_times=True, encoding=UTF8,
- resultclass=None,
22
+ resultclass=None, warnings=None,
23
**kwargs):
24
+ if six.PY3:
25
+ kwargs['warnings'] = warnings
26
super(XMLTestRunner, self).__init__(**kwargs)
27
self.output = output
28
self.encoding = encoding
0 commit comments