diff --git a/testing/test_warnings.py b/testing/test_warnings.py index 4f9ef3728..a1ecba247 100644 --- a/testing/test_warnings.py +++ b/testing/test_warnings.py @@ -786,7 +786,9 @@ def test_warning_on_testpaths_not_found(pytester: Pytester) -> None: """ ) result = pytester.runpytest() - result.stdout.fnmatch_lines(["*ConfigWarning: testpaths defined*", "*1 warning*"]) + result.stdout.fnmatch_lines( + ["*ConfigWarning: No files were found in testpaths*", "*1 warning*"] + ) def test_resource_warning(pytester: Pytester, monkeypatch: pytest.MonkeyPatch) -> None: