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

Method do_create

Lib/test/test_tempfile.py:909–913  ·  view source on GitHub ↗
(self, pre="", suf="")

Source from the content-addressed store, hash-verified

907 self._unlink(self.name)
908
909 def do_create(self, pre="", suf=""):
910 file = self.mktemped(self.dir, pre, suf)
911
912 self.nameCheck(file.name, self.dir, pre, suf)
913 return file
914
915 def test_basic(self):
916 # mktemp can choose usable file names

Callers 2

test_basicMethod · 0.95
test_manyMethod · 0.95

Calls 1

nameCheckMethod · 0.80

Tested by

no test coverage detected