diff --git a/python/helpers/pycharm/nose_utils.py b/python/helpers/pycharm/nose_utils.py index 94a6193f6857..62c77a2e1e4f 100644 --- a/python/helpers/pycharm/nose_utils.py +++ b/python/helpers/pycharm/nose_utils.py @@ -58,6 +58,8 @@ class TeamcityPlugin(ErrorClassPlugin, TextTestResult, TeamcityTestResult): def formatErr(self, err): exctype, value, tb = err + if isinstance(value, str): + value = exctype(value) return ''.join(traceback.format_exception(exctype, value, tb)) def is_gen(self, test):