Update src/_pytest/config/__init__.py
Co-authored-by: Ran Benita <ran@unusedvar.com>
This commit is contained in:
parent
462f4a6d22
commit
43df7cf914
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue