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).
This commit is contained in:
Daniel Hahler 2020-02-18 09:27:33 +01:00 committed by GitHub
parent d18c75baa3
commit 442f7a7706
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -71,8 +71,8 @@ class TestNewAPI:
[ [
# Validate location/stacklevel of warning from cacheprovider. # Validate location/stacklevel of warning from cacheprovider.
"*= warnings summary =*", "*= warnings summary =*",
"*/cacheprovider.py:314", "*/cacheprovider.py:*",
" */cacheprovider.py:314: PytestCacheWarning: could not create cache path " " */cacheprovider.py:*: PytestCacheWarning: could not create cache path "
"{}/v/cache/nodeids".format(cache_dir), "{}/v/cache/nodeids".format(cache_dir),
' config.cache.set("cache/nodeids", self.cached_nodeids)', ' config.cache.set("cache/nodeids", self.cached_nodeids)',
"*1 failed, 3 warnings in*", "*1 failed, 3 warnings in*",