fixed PY-9136 The TeamCity plugin breaks tests with current Python 2.7

added *args to TeamcityTestResult.__init__ according to http://hg.python.org/cpython/rev/0362d64c783
This commit is contained in:
Ekaterina Tuzova
2013-03-29 16:44:07 +04:00
parent 4f1a53cdc2
commit ade6f46162
+1 -1
View File
@@ -34,7 +34,7 @@ def smart_str(s):
return s
class TeamcityTestResult(TestResult):
def __init__(self, stream=sys.stdout, **kwargs):
def __init__(self, stream=sys.stdout, *args, **kwargs):
TestResult.__init__(self)
for arg, value in kwargs.items():
setattr(self, arg, value)