From 442f7a7706ae963aaa1823723207b1ca3954de3f Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Tue, 18 Feb 2020 09:27:33 +0100 Subject: [PATCH] Do not use fixed line number with test_cache_failure_warns (#6748) It was not previously checking for the line number also (02aa8ad), and this is obviously wrong (affected by changes to the file). --- testing/test_cacheprovider.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/test_cacheprovider.py b/testing/test_cacheprovider.py index ce425e26b..38a0e4e6c 100644 --- a/testing/test_cacheprovider.py +++ b/testing/test_cacheprovider.py @@ -71,8 +71,8 @@ class TestNewAPI: [ # Validate location/stacklevel of warning from cacheprovider. "*= warnings summary =*", - "*/cacheprovider.py:314", - " */cacheprovider.py:314: PytestCacheWarning: could not create cache path " + "*/cacheprovider.py:*", + " */cacheprovider.py:*: PytestCacheWarning: could not create cache path " "{}/v/cache/nodeids".format(cache_dir), ' config.cache.set("cache/nodeids", self.cached_nodeids)', "*1 failed, 3 warnings in*",