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

Method test_basic_many

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

Source from the content-addressed store, hash-verified

776 os.rmdir(self.do_create(dir="", pre=b"aa", suf=b".txt"))
777
778 def test_basic_many(self):
779 # mkdtemp can create many directories (stochastic)
780 extant = list(range(TEST_FILES))
781 try:
782 for i in extant:
783 extant[i] = self.do_create(pre="aa")
784 finally:
785 for i in extant:
786 if(isinstance(i, str)):
787 os.rmdir(i)
788
789 def test_choose_directory(self):
790 # mkdtemp can create directories in a user-selected directory

Callers

nothing calls this directly

Calls 3

do_createMethod · 0.95
listClass · 0.85
rmdirMethod · 0.80

Tested by

no test coverage detected