MCPcopy Index your code
hub / github.com/python/cpython / tree_on_path

Method tree_on_path

Lib/test/test_importlib/resources/util.py:199–202  ·  view source on GitHub ↗
(self, spec)

Source from the content-addressed store, hash-verified

197 MODULE = 'data01'
198
199 def tree_on_path(self, spec):
200 temp_dir = self.fixtures.enter_context(os_helper.temp_dir())
201 _path.build(spec, pathlib.Path(temp_dir))
202 self.fixtures.enter_context(import_helper.DirsOnSysPath(temp_dir))
203
204
205class CommonTests(DiskSetup, CommonTestsBase):

Callers

nothing calls this directly

Calls 3

enter_contextMethod · 0.80
temp_dirMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected