MCPcopy Create free account
hub / github.com/python/cpython / tearDown

Method tearDown

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

clearMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected