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