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

Method test_basic_many

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

Source from the content-addressed store, hash-verified

757 os.rmdir(self.do_create(dir="", pre=b"aa", suf=b".txt"))
758
759 def test_basic_many(self):
760 # mkdtemp can create many directories (stochastic)
761 extant = list(range(TEST_FILES))
762 try:
763 for i in extant:
764 extant[i] = self.do_create(pre="aa")
765 finally:
766 for i in extant:
767 if(isinstance(i, str)):
768 os.rmdir(i)
769
770 def test_choose_directory(self):
771 # mkdtemp can create directories in a user-selected directory

Callers

nothing calls this directly

Calls 4

do_createMethod · 0.95
listClass · 0.85
isinstanceFunction · 0.85
rmdirMethod · 0.80

Tested by

no test coverage detected