Skip to content

Commit

Permalink
Do not use fixed line number with test_cache_failure_warns (#6748)
Browse files Browse the repository at this point in the history
It was not previously checking for the line number also (02aa8ad), and this is
obviously wrong (affected by changes to the file).
  • Loading branch information
blueyed authored Feb 18, 2020
1 parent d18c75b commit 442f7a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testing/test_cacheprovider.py
Original file line number Diff line number Diff line change
Expand Up @@ -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*",
Expand Down

0 comments on commit 442f7a7

Please sign in to comment.