From 56a4b9618a99ea920458620ce14a57aecad4fc28 Mon Sep 17 00:00:00 2001 From: mirocana Date: Thu, 13 Apr 2017 18:15:15 +0300 Subject: [PATCH] Ensure '_latest_subtest_result' is set. Prevent AttributeError: 'NewTeamcityServiceMessages' object has no attribute '_latest_subtest_result' --- python/helpers/pycharm/_jb_runner_tools.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/helpers/pycharm/_jb_runner_tools.py b/python/helpers/pycharm/_jb_runner_tools.py index 54659293a4cf..ffdc618ce285 100644 --- a/python/helpers/pycharm/_jb_runner_tools.py +++ b/python/helpers/pycharm/_jb_runner_tools.py @@ -154,6 +154,8 @@ PARSE_FUNC = None class NewTeamcityServiceMessages(_old_service_messages): + _latest_subtest_result = None + def message(self, messageName, **properties): # Intellij may fail to process message if it has char just before it. # Space before message has no visible affect, but saves from such cases