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

Method test_choose_directory

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

Source from the content-addressed store, hash-verified

686
687
688 def test_choose_directory(self):
689 # mkstemp can create directories in a user-selected directory
690 dir = tempfile.mkdtemp()
691 try:
692 self.do_create(dir=dir)
693 self.do_create(dir=os_helper.FakePath(dir))
694 finally:
695 os.rmdir(dir)
696
697 def test_for_tempdir_is_bytes_issue40701_api_warts(self):
698 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