]> granicus.if.org Git - python/commitdiff
Make sure mimetypes is reinitialized before running the tests.
authorJeremy Hylton <jeremy@alum.mit.edu>
Fri, 18 Jul 2003 15:13:37 +0000 (15:13 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Fri, 18 Jul 2003 15:13:37 +0000 (15:13 +0000)
If some other test comes along and uses mimetypes, it will be
initialized from the system files.

Lib/test/test_mimetypes.py

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