diff --git a/src/_pytest/junitxml.py b/src/_pytest/junitxml.py index 7a5170f32..2873ab8b4 100644 --- a/src/_pytest/junitxml.py +++ b/src/_pytest/junitxml.py @@ -587,8 +587,7 @@ class LogXML: if report.when == "call": reporter.append_failure(report) self.open_reports.append(report) - if not self.log_passing_tests: - reporter.write_captured_output(report) + reporter.write_captured_output(report) else: reporter.append_error(report) elif report.skipped: