Kaydet (Commit) 2b9b70b4 authored tarafından Martin Panter's avatar Martin Panter

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.
üst 50c584f5
...@@ -2052,5 +2052,11 @@ class BlatantOverrideConvertersTestCase(unittest.TestCase): ...@@ -2052,5 +2052,11 @@ class BlatantOverrideConvertersTestCase(unittest.TestCase):
self.assertEqual(cfg['two'].getlen('one'), 5) 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__': if __name__ == '__main__':
unittest.main() unittest.main()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment