diff --git a/src/_pytest/assertion/rewrite.py b/src/_pytest/assertion/rewrite.py index 4f16750b2..5859dd509 100644 --- a/src/_pytest/assertion/rewrite.py +++ b/src/_pytest/assertion/rewrite.py @@ -755,7 +755,7 @@ class AssertionRewriter(ast.NodeVisitor): import warnings warnings.warn_explicit( - "assertion is always true, perhaps " "remove parentheses?", + "assertion is always true, perhaps remove parentheses?", PytestWarning, filename=str(self.module_path), lineno=assert_.lineno,