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

Method test_multiple_close

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

Source from the content-addressed store, hash-verified

1969 "TemporaryDirectory %s exists after __del__" % name)
1970
1971 def test_multiple_close(self):
1972 # Can be cleaned-up many times without error
1973 d = self.do_create()
1974 d.cleanup()
1975 d.cleanup()
1976 d.cleanup()
1977
1978 def test_context_manager(self):
1979 # 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