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

Method do_create

Lib/test/test_tempfile.py:1195–1200  ·  view source on GitHub ↗
(self, max_size=0, dir=None, pre="", suf="")

Source from the content-addressed store, hash-verified

1193 """Test SpooledTemporaryFile()."""
1194
1195 def do_create(self, max_size=0, dir=None, pre="", suf=""):
1196 if dir is None:
1197 dir = tempfile.gettempdir()
1198 file = tempfile.SpooledTemporaryFile(max_size=max_size, dir=dir, prefix=pre, suffix=suf)
1199
1200 return file
1201
1202
1203 def test_basic(self):

Callers 13

test_basicMethod · 0.95
test_is_iobaseMethod · 0.95
test_del_rolled_fileMethod · 0.95
test_rewrite_smallMethod · 0.95
test_write_sequentialMethod · 0.95
test_writelinesMethod · 0.95
test_sparseMethod · 0.95
test_filenoMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected