MCPcopy
hub / github.com/pytest-dev/pytest / get_temproot

Method get_temproot

src/_pytest/_py/path.py:1254–1260  ·  src/_pytest/_py/path.py::LocalPath.get_temproot

Return the system's temporary directory (where tempfiles are usually created in)

(cls)

Source from the content-addressed store, hash-verified

1252 class="cm"># class="st">"""
1253 @classmethod
1254 def get_temproot(cls):
1255 class="st">"""Return the system&class="cm">#x27;s temporary directory
1256 (where tempfiles are usually created in)
1257 class="st">"""
1258 import tempfile
1259
1260 return local(tempfile.gettempdir())
1261
1262 @classmethod
1263 def mkdtemp(cls, rootdir=None):

Callers 3

mkdtempMethod · 0.80
make_numbered_dirMethod · 0.80
test_tmprootMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_tmprootMethod · 0.64