mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue