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

Method setUp

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

Source from the content-addressed store, hash-verified

394@unittest.skipUnless(sys.platform.startswith("win"), "Windows only")
395class Win32MimeTypesTestCase(unittest.TestCase):
396 def setUp(self):
397 # ensure all entries actually come from the Windows registry
398 self.original_types_map = mimetypes.types_map.copy()
399 mimetypes.types_map.clear()
400 mimetypes.init()
401 self.db = mimetypes.MimeTypes()
402
403 def tearDown(self):
404 # 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