Issue #27108: Add missing names to mimetypes.__all__, by Jacek Kołodziej
This commit is contained in:
parent
ed84ab3335
commit
f8f3121775
|
@ -33,8 +33,10 @@ except ImportError:
|
||||||
_winreg = None
|
_winreg = None
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
"guess_type","guess_extension","guess_all_extensions",
|
"knownfiles", "inited", "MimeTypes",
|
||||||
"add_type","read_mime_types","init"
|
"guess_type", "guess_all_extensions", "guess_extension",
|
||||||
|
"add_type", "init", "read_mime_types",
|
||||||
|
"suffix_map", "encodings_map", "types_map", "common_types"
|
||||||
]
|
]
|
||||||
|
|
||||||
knownfiles = [
|
knownfiles = [
|
||||||
|
|
|
@ -101,5 +101,11 @@ class Win32MimeTypesTestCase(unittest.TestCase):
|
||||||
eq(self.db.guess_type("image.jpg"), ("image/jpeg", None))
|
eq(self.db.guess_type("image.jpg"), ("image/jpeg", None))
|
||||||
eq(self.db.guess_type("image.png"), ("image/png", None))
|
eq(self.db.guess_type("image.png"), ("image/png", None))
|
||||||
|
|
||||||
|
|
||||||
|
class MiscTestCase(unittest.TestCase):
|
||||||
|
def test__all__(self):
|
||||||
|
support.check__all__(self, mimetypes)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
Loading…
Reference in New Issue