Skip to content

Commit b9a3ba1

Browse files
committed
test_cache_writefail_permissions: ignore any other plugins
1 parent 1b4623a commit b9a3ba1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testing/test_cacheprovider.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ def test_cache_writefail_permissions(self, testdir):
5959
@pytest.mark.filterwarnings(
6060
"ignore:could not create cache path:pytest.PytestWarning"
6161
)
62-
def test_cache_failure_warns(self, testdir):
62+
def test_cache_failure_warns(self, testdir, monkeypatch):
63+
monkeypatch.setenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", "1")
6364
cache_dir = str(testdir.tmpdir.ensure_dir(".pytest_cache"))
6465
mode = os.stat(cache_dir)[stat.ST_MODE]
6566
testdir.tmpdir.ensure_dir(".pytest_cache").chmod(0)

0 commit comments

Comments
 (0)