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

Method test_tmproot

testing/_py/test_local.py:764–771  ·  testing/_py/test_local.py::TestLocalPath.test_tmproot
(self)

Source from the content-addressed store, hash-verified

762 d.remove(rec=1)
763
764 def test_tmproot(self):
765 d = local.mkdtemp()
766 tmproot = local.get_temproot()
767 try:
768 assert d.check(dir=1)
769 assert d.dirpath() == tmproot
770 finally:
771 d.remove(rec=1)
772
773 def test_chdir(self, tmpdir):
774 old = local()

Callers

nothing calls this directly

Calls 5

mkdtempMethod · 0.80
get_temprootMethod · 0.80
dirpathMethod · 0.80
removeMethod · 0.80
checkMethod · 0.45

Tested by

no test coverage detected