test_cache_writefail_permissions: ignore any other plugins
This commit is contained in:
		
							parent
							
								
									1b4623a6d1
								
							
						
					
					
						commit
						b9a3ba1fe8
					
				|  | @ -59,7 +59,8 @@ class TestNewAPI: | ||||||
|     @pytest.mark.filterwarnings( |     @pytest.mark.filterwarnings( | ||||||
|         "ignore:could not create cache path:pytest.PytestWarning" |         "ignore:could not create cache path:pytest.PytestWarning" | ||||||
|     ) |     ) | ||||||
|     def test_cache_failure_warns(self, testdir): |     def test_cache_failure_warns(self, testdir, monkeypatch): | ||||||
|  |         monkeypatch.setenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", "1") | ||||||
|         cache_dir = str(testdir.tmpdir.ensure_dir(".pytest_cache")) |         cache_dir = str(testdir.tmpdir.ensure_dir(".pytest_cache")) | ||||||
|         mode = os.stat(cache_dir)[stat.ST_MODE] |         mode = os.stat(cache_dir)[stat.ST_MODE] | ||||||
|         testdir.tmpdir.ensure_dir(".pytest_cache").chmod(0) |         testdir.tmpdir.ensure_dir(".pytest_cache").chmod(0) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue