From ade6f46162acf655c4c2983000e5cf11f0aa6ae4 Mon Sep 17 00:00:00 2001 From: Ekaterina Tuzova Date: Fri, 29 Mar 2013 13:56:57 +0400 Subject: [PATCH] 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 --- python/helpers/pycharm/tcunittest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/helpers/pycharm/tcunittest.py b/python/helpers/pycharm/tcunittest.py index c2b5ecdc3bcb..ef23b5042cc8 100644 --- a/python/helpers/pycharm/tcunittest.py +++ b/python/helpers/pycharm/tcunittest.py @@ -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)