Update src/_pytest/config/__init__.py

Co-authored-by: Ran Benita <ran@unusedvar.com>
This commit is contained in:
Kenny Y 2023-05-28 08:02:27 -04:00 committed by GitHub
parent 462f4a6d22
commit 43df7cf914
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1384,8 +1384,8 @@ class Config:
args.extend(sorted(glob.iglob(path, recursive=True))) args.extend(sorted(glob.iglob(path, recursive=True)))
if testpaths and not args: if testpaths and not args:
warning_text = ( warning_text = (
"testpaths defined but path not found, " "No files were found in testpaths; consider removing or adjusting your testpaths configuration. "
"will search recursively from current directory instead" "Searching recursively from the current directory instead."
) )
self.issue_config_time_warning( self.issue_config_time_warning(
PytestConfigWarning(warning_text), stacklevel=3 PytestConfigWarning(warning_text), stacklevel=3