Make sure mimetypes is reinitialized before running the tests.

If some other test comes along and uses mimetypes, it will be
initialized from the system files.
This commit is contained in:
Jeremy Hylton 2003-07-18 15:13:37 +00:00
parent 096d986f3b
commit 969a7003f9
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@ from test import test_support
# Tell it we don't know about external files: # Tell it we don't know about external files:
mimetypes.knownfiles = [] mimetypes.knownfiles = []
mimetypes.inited = False
class MimeTypesTestCase(unittest.TestCase): class MimeTypesTestCase(unittest.TestCase):