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

Method test_basic

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

Source from the content-addressed store, hash-verified

417 return file
418
419 def test_basic(self):
420 # _mkstemp_inner can create files
421 self.do_create().write(b"blat")
422 self.do_create(pre="a").write(b"blat")
423 self.do_create(suf="b").write(b"blat")
424 self.do_create(pre="a", suf="b").write(b"blat")
425 self.do_create(pre="aa", suf=".txt").write(b"blat")
426
427 def test_basic_with_bytes_names(self):
428 # _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