From: Martin Panter Date: Fri, 9 Sep 2016 06:46:48 +0000 (+0000) Subject: Issue #27106: Add test for configparser.__all__ X-Git-Tag: v3.6.0b1~220 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2b9b70b43bce95dc9d98dcf1ff109e6b13b246aa;p=thirdparty%2FPython%2Fcpython.git Issue #27106: Add test for configparser.__all__ Patch by Jacek KoƂodziej. The Error class is deliberately omitted because it is a generic name and of limited use. --- diff --git a/Lib/test/test_configparser.py b/Lib/test/test_configparser.py index 71a8f3f8d96d..2b0819865710 100644 --- a/Lib/test/test_configparser.py +++ b/Lib/test/test_configparser.py @@ -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()