]> granicus.if.org Git - python/commitdiff
Issue #27106: Add test for configparser.__all__
authorMartin Panter <vadmium+py@gmail.com>
Fri, 9 Sep 2016 06:46:48 +0000 (06:46 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Fri, 9 Sep 2016 06:46:48 +0000 (06:46 +0000)
Patch by Jacek KoƂodziej. The Error class is deliberately omitted because it
is a generic name and of limited use.

Lib/test/test_configparser.py

index 71a8f3f8d96db559751e4787eeb6402a4298c84b..2b08198657107ca99d8945d180ffa026ed6cd756 100644 (file)
@@ -2052,5 +2052,11 @@ class BlatantOverrideConvertersTestCase(unittest.TestCase):
             self.assertEqual(cfg['two'].getlen('one'), 5)
 
 
+class MiscTestCase(unittest.TestCase):
+    def test__all__(self):
+        blacklist = {"Error"}
+        support.check__all__(self, configparser, blacklist=blacklist)
+
+
 if __name__ == '__main__':
     unittest.main()