Issue #27109: Add InvalidFileException to __all__, by Jacek Kołodziej
This commit is contained in:
parent
f8f3121775
commit
d04d21373f
|
@ -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"
|
||||
]
|
||||
|
||||
|
|
|
@ -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__':
|
||||
|
|
Loading…
Reference in New Issue