mirror of https://github.com/python/cpython
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:
parent
096d986f3b
commit
969a7003f9
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue