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

Method test_basic

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

Source from the content-addressed store, hash-verified

973
974
975 def test_basic(self):
976 # NamedTemporaryFile can create files
977 self.do_create()
978 self.do_create(pre="a")
979 self.do_create(suf="b")
980 self.do_create(pre="a", suf="b")
981 self.do_create(pre="aa", suf=".txt")
982
983 def test_method_lookup(self):
984 # Issue #18879: Looking up a temporary file method should keep it

Callers

nothing calls this directly

Calls 1

do_createMethod · 0.95

Tested by

no test coverage detected