diff options
author | romakudlakov <romakudlakov@yandex-team.com> | 2022-12-27 10:55:55 +0300 |
---|---|---|
committer | romakudlakov <romakudlakov@yandex-team.com> | 2022-12-27 10:55:55 +0300 |
commit | 35f191bf6fb88d6b7c27952c02fd04502fc88967 (patch) | |
tree | 46fafd393a01189699855e1862b6affa34c997d8 /library/python | |
parent | 3b9fdd3ec79aa0340c50195c227ce0f2937038d0 (diff) | |
download | ydb-35f191bf6fb88d6b7c27952c02fd04502fc88967.tar.gz |
Fix good results contain empty comment
Fix comment for good results
Diffstat (limited to 'library/python')
-rw-r--r-- | library/python/pytest/plugins/ya.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/library/python/pytest/plugins/ya.py b/library/python/pytest/plugins/ya.py index af4a6ff4d0..723904df92 100644 --- a/library/python/pytest/plugins/ya.py +++ b/library/python/pytest/plugins/ya.py @@ -638,7 +638,7 @@ class TestItem(object): self._result = result self.nodeid = report.nodeid self._class_name, self._test_name = tools.split_node_id(self.nodeid, test_suffix) - self._error = None + self._error = "" self._status = None self._process_report(report) self._duration = hasattr(report, 'duration') and report.duration or 0 @@ -649,8 +649,6 @@ class TestItem(object): self.set_error(report) if hasattr(report, 'when') and report.when != "call": self.set_error(report.when + " failed:\n" + self._error) - else: - self.set_error("") report_teststatus = _pytest.skipping.pytest_report_teststatus(report) if report_teststatus is not None: @@ -667,7 +665,6 @@ class TestItem(object): self.set_error(yatest_lib.tools.to_utf8(report.longrepr[-1])) elif report.passed: self._status = 'good' - self.set_error("") else: self._status = 'fail' |