From 6fefbb82e8612571ff61e98f7d9d90143f88b51a Mon Sep 17 00:00:00 2001 From: HomieOmie <93492271+HomieOmie@users.noreply.github.com> Date: Sat, 6 May 2023 20:35:13 -0400 Subject: [PATCH] Update code.py to stop printing wrong outputs to terminal --- src/_pytest/_code/code.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/_pytest/_code/code.py b/src/_pytest/_code/code.py index b5150272a..bafc66868 100644 --- a/src/_pytest/_code/code.py +++ b/src/_pytest/_code/code.py @@ -1158,10 +1158,6 @@ class ReprEntry(TerminalRepr): if is_failure_line: # from this point on all lines are considered part of the failure failure_lines.extend(self.lines[index:]) - - for line in self.lines[index:]: - print(line) - break else: if self.style == "value":