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:
Ekaterina Tuzova
2013-02-12 13:46:13 +04:00
parent 926293d07b
commit 340dbd62e2
2 changed files with 2 additions and 1 deletions
@@ -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)
+1 -1
View File
@@ -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