Skip to content

Commit

Permalink
tests: fix test_cache_writefail_uses_warnings when run as root user (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Nov 5, 2020
1 parent 7cd2ea8 commit 1f974e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions testing/test_cacheprovider.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ def test_cache_writefail_uses_warnings(self, testdir):

# No failure when writing file fails with cache being read-only.
cache_file = cache._getvaluepath("test/broken")
cache_file.parent.mkdir(parents=True)
cache_file.touch(0)
cache_file.mkdir(parents=True)
assert cache.set("test/broken", []) is None

# Failure when writing file.
Expand Down

0 comments on commit 1f974e0

Please sign in to comment.