From 7aa2a8c60d2d32e48736965a6d070bb2bd6dfd74 Mon Sep 17 00:00:00 2001 From: Kenny Y <24802984+kenny-y-dev@users.noreply.github.com> Date: Sun, 28 May 2023 08:24:33 -0400 Subject: [PATCH] Adjust test to reflect new verbage on warning --- testing/test_warnings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: