MCPcopy Create free account
hub / github.com/python/cpython / tmp_path

Function tmp_path

Lib/test/test_importlib/metadata/fixtures.py:20–25  ·  view source on GitHub ↗

Like os_helper.temp_dir, but yields a pathlib.Path.

()

Source from the content-addressed store, hash-verified

18
19@contextlib.contextmanager
20def tmp_path():
21 """
22 Like os_helper.temp_dir, but yields a pathlib.Path.
23 """
24 with os_helper.temp_dir() as path:
25 yield pathlib.Path(path)
26
27
28@contextlib.contextmanager

Callers 1

setUpMethod · 0.85

Calls 1

temp_dirMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…