summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-06-06 02:00:50 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-06-06 02:00:50 (GMT)
commitd04d21373f01ff0d4b8aabfb73ea19b2c023f4a0 (patch)
tree6e2e055c9df2575bd372c5db3dfdf866d7b09676 /Lib
parentf8f3121775520b6d731924d2e0ce86d2cea898fa (diff)
downloadcpython-d04d21373f01ff0d4b8aabfb73ea19b2c023f4a0.zip
cpython-d04d21373f01ff0d4b8aabfb73ea19b2c023f4a0.tar.gz
cpython-d04d21373f01ff0d4b8aabfb73ea19b2c023f4a0.tar.bz2
Issue #27109: Add InvalidFileException to __all__, by Jacek KoƂodziej
Diffstat (limited to 'Lib')
-rw-r--r--Lib/plistlib.py2
-rw-r--r--Lib/test/test_plistlib.py8
2 files changed, 8 insertions, 2 deletions
diff --git a/Lib/plistlib.py b/Lib/plistlib.py
index b66639c..4f360f3 100644
--- a/Lib/plistlib.py
+++ b/Lib/plistlib.py
@@ -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"
]
diff --git a/Lib/test/test_plistlib.py b/Lib/test/test_plistlib.py
index 662ed90..60ff918 100644
--- a/Lib/test/test_plistlib.py
+++ b/Lib/test/test_plistlib.py
@@ -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__':