diff --git a/AUTHORS b/AUTHORS index 96c434d6a..c57502ac2 100644 --- a/AUTHORS +++ b/AUTHORS @@ -129,6 +129,7 @@ Garvit Shubham Gene Wood George Kussumoto Georgy Dyuldin +Gergely Kalmár Gleb Nikonorov Graeme Smecher Graham Horler diff --git a/src/_pytest/reports.py b/src/_pytest/reports.py index 282682c47..a68e68bc5 100644 --- a/src/_pytest/reports.py +++ b/src/_pytest/reports.py @@ -76,7 +76,9 @@ class BaseReport: def toterminal(self, out: TerminalWriter) -> None: if hasattr(self, "node"): - out.line(getworkerinfoline(self.node)) + worker_info = getworkerinfoline(self.node) + if worker_info: + out.line(worker_info) longrepr = self.longrepr if longrepr is None: