From 3b479d2f9f2c10d0f42227ccae9cf19352a239f8 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 16 Feb 2020 11:51:13 +0100 Subject: [PATCH] Do not use fixed line number with test_cache_failure_warns 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 ce425e26bd1..38a0e4e6cb4 100644 --- a/testing/test_cacheprovider.py +++ b/testing/test_cacheprovider.py @@ -71,8 +71,8 @@ def test_cache_failure_warns(self, testdir, monkeypatch): [ # 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*",