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

Method test_many

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

Source from the content-addressed store, hash-verified

940 self.do_create(pre="aa", suf=".txt")
941
942 def test_many(self):
943 # mktemp can choose many usable file names (stochastic)
944 extant = list(range(TEST_FILES))
945 for i in extant:
946 extant[i] = self.do_create(pre="aa")
947 del extant
948 support.gc_collect() # For PyPy or other GCs.
949
950## def test_warning(self):
951## # mktemp issues a warning when used

Callers

nothing calls this directly

Calls 2

do_createMethod · 0.95
listClass · 0.85

Tested by

no test coverage detected