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

Method setUp

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

Source from the content-addressed store, hash-verified

397@unittest.skipUnless(sys.platform.startswith("win"), "Windows only")
398class Win32MimeTypesTestCase(unittest.TestCase):
399 def setUp(self):
400 # ensure all entries actually come from the Windows registry
401 self.original_types_map = mimetypes.types_map.copy()
402 mimetypes.types_map.clear()
403 mimetypes.init()
404 self.db = mimetypes.MimeTypes()
405
406 def tearDown(self):
407 # restore default settings

Callers

nothing calls this directly

Calls 3

copyMethod · 0.45
clearMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected