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

Method cleanup

Lib/test/test_sax.py:846–848  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

844 writer = codecs.open(self.fname, 'w', encoding='ascii',
845 errors='xmlcharrefreplace', buffering=0)
846 def cleanup():
847 writer.close()
848 os_helper.unlink(self.fname)
849 self.addCleanup(cleanup)
850 def getvalue():
851 # Windows will not let use reopen without first closing

Callers

nothing calls this directly

Calls 2

closeMethod · 0.45
unlinkMethod · 0.45

Tested by

no test coverage detected