MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_choose_directory

Method test_choose_directory

Lib/test/test_tempfile.py:669–676  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

667
668
669 def test_choose_directory(self):
670 # mkstemp can create directories in a user-selected directory
671 dir = tempfile.mkdtemp()
672 try:
673 self.do_create(dir=dir)
674 self.do_create(dir=os_helper.FakePath(dir))
675 finally:
676 os.rmdir(dir)
677
678 def test_for_tempdir_is_bytes_issue40701_api_warts(self):
679 orig_tempdir = tempfile.tempdir

Callers

nothing calls this directly

Calls 3

do_createMethod · 0.95
mkdtempMethod · 0.80
rmdirMethod · 0.80

Tested by

no test coverage detected