(self)
| 397 | @unittest.skipUnless(sys.platform.startswith("win"), "Windows only") |
| 398 | class 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 |