(self, monkeypatch, prefix, source, expected)
| 2277 | ], |
| 2278 | ) |
| 2279 | def test_get_cache_dir(self, monkeypatch, prefix, source, expected) -> None: |
| 2280 | monkeypatch.delenv("PYTHONPYCACHEPREFIX", raising=False) |
| 2281 | monkeypatch.setattr(sys, "pycache_prefix", prefix, raising=False) |
| 2282 | |
| 2283 | assert get_cache_dir(Path(source)) == Path(expected) |
| 2284 | |
| 2285 | def test_sys_pycache_prefix_integration( |
| 2286 | self, tmp_path, monkeypatch, pytester: Pytester |
nothing calls this directly
no test coverage detected