From 252345d0e724137d1ae558504fd1e9027f9d4b31 Mon Sep 17 00:00:00 2001 From: ice Date: Fri, 26 Aug 2022 11:57:07 +0800 Subject: [PATCH] When the test item prints log, the print format looks strange #10247 --- src/_pytest/terminal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_pytest/terminal.py b/src/_pytest/terminal.py index 9739a467a..b7fde6469 100644 --- a/src/_pytest/terminal.py +++ b/src/_pytest/terminal.py @@ -397,7 +397,7 @@ class TerminalReporter: self.currentfspath = fspath relfspath = bestrelpath(self.startpath, fspath) self._tw.line() - self._tw.write(relfspath + " ") + self._tw.write(relfspath + "\n") self._tw.write(res, flush=True, **markup) def write_ensure_prefix(self, prefix: str, extra: str = "", **kwargs) -> None: