From f8f3121775520b6d731924d2e0ce86d2cea898fa Mon Sep 17 00:00:00 2001 From: Martin Panter Date: Mon, 6 Jun 2016 01:59:19 +0000 Subject: [PATCH] =?UTF-8?q?Issue=20#27108:=20Add=20missing=20names=20to=20?= =?UTF-8?q?mimetypes.=5F=5Fall=5F=5F,=20by=20Jacek=20Ko=C5=82odziej?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Lib/mimetypes.py | 6 ++++-- Lib/test/test_mimetypes.py | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index 0be76ad4f75..9a886803dc1 100644 --- a/Lib/mimetypes.py +++ b/Lib/mimetypes.py @@ -33,8 +33,10 @@ except ImportError: _winreg = None __all__ = [ - "guess_type","guess_extension","guess_all_extensions", - "add_type","read_mime_types","init" + "knownfiles", "inited", "MimeTypes", + "guess_type", "guess_all_extensions", "guess_extension", + "add_type", "init", "read_mime_types", + "suffix_map", "encodings_map", "types_map", "common_types" ] knownfiles = [ diff --git a/Lib/test/test_mimetypes.py b/Lib/test/test_mimetypes.py index 68565930a43..4e2c9089b57 100644 --- a/Lib/test/test_mimetypes.py +++ b/Lib/test/test_mimetypes.py @@ -101,5 +101,11 @@ class Win32MimeTypesTestCase(unittest.TestCase): eq(self.db.guess_type("image.jpg"), ("image/jpeg", 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__": unittest.main()