(report)
| 566 | |
| 567 | |
| 568 | def pytest_collectreport(report): |
| 569 | if not report.passed: |
| 570 | if hasattr(pytest_config, 'ya_trace_reporter'): |
| 571 | test_item = TestItem(report, None, None, pytest_config.option.test_suffix) |
| 572 | pytest_config.ya_trace_reporter.on_error(test_item) |
| 573 | else: |
| 574 | sys.stderr.write(yatest_lib.tools.to_utf8(report.longrepr)) |
| 575 | |
| 576 | |
| 577 | @pytest.hookimpl(tryfirst=True) |