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

Method do_create

Lib/test/test_tempfile.py:965–972  ·  view source on GitHub ↗
(self, dir=None, pre="", suf="", delete=True)

Source from the content-addressed store, hash-verified

963 """Test NamedTemporaryFile()."""
964
965 def do_create(self, dir=None, pre="", suf="", delete=True):
966 if dir is None:
967 dir = tempfile.gettempdir()
968 file = tempfile.NamedTemporaryFile(dir=dir, prefix=pre, suffix=suf,
969 delete=delete)
970
971 self.nameCheck(file.name, dir, pre, suf)
972 return file
973
974
975 def test_basic(self):

Callers 2

test_basicMethod · 0.95
test_method_lookupMethod · 0.95

Calls 1

nameCheckMethod · 0.80

Tested by

no test coverage detected