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.
This commit is contained in:
Martin Panter 2016-09-09 06:46:48 +00:00
parent 50c584f50b
commit 2b9b70b43b
1 changed files with 6 additions and 0 deletions

View 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()