diff --git a/python/helpers/pycharm/teamcity/pytest_plugin.py b/python/helpers/pycharm/teamcity/pytest_plugin.py index 7967e713aefa..2e5ca3775f58 100644 --- a/python/helpers/pycharm/teamcity/pytest_plugin.py +++ b/python/helpers/pycharm/teamcity/pytest_plugin.py @@ -255,6 +255,12 @@ class EchoTeamCityMessages(object): if self.swap_diff: left, right = right, left diff_error = diff_tools.EqualsAssertionError(expected=right, actual=left) + else: + if m := re.search("AssertionError: Expected <(.*)> to .*? <(.*)>, but .*", err_message): + left, right = m.group(1), m.group(2) + if self.swap_diff: + left, right = right, left + diff_error = diff_tools.EqualsAssertionError(expected=right, actual=left) except Exception: pass