Skip to content

Commit 31d5ced

Browse files
Avoid duplicating system-out and system-error tags
1 parent 91b3ff1 commit 31d5ced

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/_pytest/junitxml.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,8 @@ def pytest_runtest_logreport(self, report):
591591
if report.when == "call":
592592
reporter.append_failure(report)
593593
self.open_reports.append(report)
594-
reporter.write_captured_output(report)
594+
if not self.log_passing_tests:
595+
reporter.write_captured_output(report)
595596
else:
596597
reporter.append_error(report)
597598
elif report.skipped:

0 commit comments

Comments
 (0)