mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
TeamcityTestRunner is now new-style class (it's possible that user defined old-style suite runner in settings instead of DjangoTestSuiteRunner)
fixed PY-8821 can't run unit tests with pycharm 2.7
This commit is contained in:
@@ -35,6 +35,7 @@ try:
|
||||
BaseSuiteRunner.__init__(self)
|
||||
|
||||
except ImportError:
|
||||
# for Django <= 1.1 compatibility
|
||||
class BaseRunner(TeamcityTestRunner):
|
||||
def __init__(self, stream=sys.stdout, **options):
|
||||
TeamcityTestRunner.__init__(self, stream)
|
||||
|
||||
@@ -184,7 +184,7 @@ class TeamcityTestResult(TestResult):
|
||||
# do not use text.decode('string_escape'), it leads to problems with different string encodings given
|
||||
return text.replace("\\n", "\n")
|
||||
|
||||
class TeamcityTestRunner:
|
||||
class TeamcityTestRunner(object):
|
||||
def __init__(self, stream=sys.stdout):
|
||||
self.stream = stream
|
||||
|
||||
|
||||
Reference in New Issue
Block a user