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

Method test_basic

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

Source from the content-addressed store, hash-verified

398 return file
399
400 def test_basic(self):
401 # _mkstemp_inner can create files
402 self.do_create().write(b"blat")
403 self.do_create(pre="a").write(b"blat")
404 self.do_create(suf="b").write(b"blat")
405 self.do_create(pre="a", suf="b").write(b"blat")
406 self.do_create(pre="aa", suf=".txt").write(b"blat")
407
408 def test_basic_with_bytes_names(self):
409 # _mkstemp_inner can create files when given name parts all

Callers

nothing calls this directly

Calls 2

do_createMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected