MCPcopy
hub / github.com/pex-tool/pex / disabled_cache

Function disabled_cache

tests/test_resolver.py:103–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101
102@contextmanager
103def disabled_cache():
104 # type: () -> Iterator[None]
105
106 # N.B.: The resolve cache is never actually disabled, `--disable-cache` just switches the cache
107 # from default PEX_ROOT to a temporary directory. We do the same here.
108 with temporary_dir() as td, cache(td):
109 yield
110
111
112def test_empty_resolve():

Callers 2

test_empty_resolveFunction · 0.85
test_resolve_cacheFunction · 0.85

Calls 2

temporary_dirFunction · 0.90
cacheFunction · 0.85

Tested by

no test coverage detected