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

Method tearDown

Lib/test/test_mimetypes.py:403–406  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

401 self.db = mimetypes.MimeTypes()
402
403 def tearDown(self):
404 # restore default settings
405 mimetypes.types_map.clear()
406 mimetypes.types_map.update(self.original_types_map)
407
408 @unittest.skipIf(win32_edition() in ('NanoServer', 'WindowsCoreHeadless', 'IoTEdgeOS'),
409 "MIME types registry keys unavailable")

Callers

nothing calls this directly

Calls 2

clearMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected