Skip to content

Commit

Permalink
tests: fix test_cache_writefail_uses_warnings for pypy3
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Nov 18, 2020
1 parent ddf117d commit c5f7301
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testing/test_cacheprovider.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def test_config_cache_dataerror(self, testdir):
assert val == -2

@pytest.mark.filterwarnings("default")
@pytest.mark.pypy_specific
def test_cache_writefail_uses_warnings(self, testdir):
testdir.makeini("[pytest]")
cache_file_instead_of_dir = testdir.tmpdir.join(".pytest_cache")
Expand Down Expand Up @@ -62,7 +63,7 @@ def test_cache_writefail_uses_warnings(self, testdir):
assert len(wr) == 1
assert wr[0].filename == __file__
assert re.match(
r"^could not write cache path .*broken: .*broken'$",
r"^could not write cache path .*broken: .*broken'\)?$",
str(wr[0].message),
)

Expand Down

0 comments on commit c5f7301

Please sign in to comment.