Skip to content

Commit a227ba2

Browse files
committed
Fix issue #190
1 parent 9677b41 commit a227ba2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

xmlrunner/runner.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import sys
44
import time
55

6+
import six
7+
68
from .unittest import TextTestRunner, TestProgram
79
from .result import _XMLTestResult
810

@@ -17,8 +19,10 @@ class XMLTestRunner(TextTestRunner):
1719
"""
1820
def __init__(self, output='.', outsuffix=None,
1921
elapsed_times=True, encoding=UTF8,
20-
resultclass=None,
22+
resultclass=None, warnings=None,
2123
**kwargs):
24+
if six.PY3:
25+
kwargs['warnings'] = warnings
2226
super(XMLTestRunner, self).__init__(**kwargs)
2327
self.output = output
2428
self.encoding = encoding

0 commit comments

Comments
 (0)