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

Method test_multiple_close

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

Source from the content-addressed store, hash-verified

1987 "TemporaryDirectory %s exists after __del__" % name)
1988
1989 def test_multiple_close(self):
1990 # Can be cleaned-up many times without error
1991 d = self.do_create()
1992 d.cleanup()
1993 d.cleanup()
1994 d.cleanup()
1995
1996 def test_context_manager(self):
1997 # Can be used as a context manager

Callers

nothing calls this directly

Calls 2

do_createMethod · 0.95
cleanupMethod · 0.45

Tested by

no test coverage detected