Issue #27109: Add InvalidFileException to __all__, by Jacek Kołodziej

This commit is contained in:
Martin Panter 2016-06-06 02:00:50 +00:00
parent f8f3121775
commit d04d21373f
2 changed files with 8 additions and 2 deletions

View File

@ -47,7 +47,7 @@ Parse Plist example:
"""
__all__ = [
"readPlist", "writePlist", "readPlistFromBytes", "writePlistToBytes",
"Plist", "Data", "Dict", "FMT_XML", "FMT_BINARY",
"Plist", "Data", "Dict", "InvalidFileException", "FMT_XML", "FMT_BINARY",
"load", "dump", "loads", "dumps"
]

View File

@ -526,8 +526,14 @@ class TestPlistlibDeprecated(unittest.TestCase):
self.assertEqual(cur, in_data)
class MiscTestCase(unittest.TestCase):
def test__all__(self):
blacklist = {"PlistFormat", "PLISTHEADER"}
support.check__all__(self, plistlib, blacklist=blacklist)
def test_main():
support.run_unittest(TestPlistlib, TestPlistlibDeprecated)
support.run_unittest(TestPlistlib, TestPlistlibDeprecated, MiscTestCase)
if __name__ == '__main__':