From 43df7cf9144d562fc890a4b7c76073e41717e7cf Mon Sep 17 00:00:00 2001 From: Kenny Y <24802984+kenny-y-dev@users.noreply.github.com> Date: Sun, 28 May 2023 08:02:27 -0400 Subject: [PATCH] Update src/_pytest/config/__init__.py Co-authored-by: Ran Benita --- src/_pytest/config/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_pytest/config/__init__.py b/src/_pytest/config/__init__.py index b5e691094..47a462e70 100644 --- a/src/_pytest/config/__init__.py +++ b/src/_pytest/config/__init__.py @@ -1384,8 +1384,8 @@ class Config: args.extend(sorted(glob.iglob(path, recursive=True))) if testpaths and not args: warning_text = ( - "testpaths defined but path not found, " - "will search recursively from current directory instead" + "No files were found in testpaths; consider removing or adjusting your testpaths configuration. " + "Searching recursively from the current directory instead." ) self.issue_config_time_warning( PytestConfigWarning(warning_text), stacklevel=3