diff --git a/testing/test_cacheprovider.py b/testing/test_cacheprovider.py index 2444d8bc1..114a63683 100644 --- a/testing/test_cacheprovider.py +++ b/testing/test_cacheprovider.py @@ -63,7 +63,8 @@ class TestNewAPI(object): ) result = testdir.runpytest("-rw") assert result.ret == 1 - result.stdout.fnmatch_lines(["*could not create cache path*", "*2 warnings*"]) + # warnings from nodeids, lastfailed, and stepwise + result.stdout.fnmatch_lines(["*could not create cache path*", "*3 warnings*"]) def test_config_cache(self, testdir): testdir.makeconftest(