diff --git a/src/_pytest/reports.py b/src/_pytest/reports.py index 9e61d7def..1521ad767 100644 --- a/src/_pytest/reports.py +++ b/src/_pytest/reports.py @@ -208,7 +208,7 @@ class BaseReport: return word, markup fail( - "pytest_report_teststatus() hook (from a plugin) returned " + f"pytest_report_teststatus() hook (from a plugin) returned " "an invalid verbose value: {verbose!r}.\nExpected either a string " "or a tuple of (word, markup)." )