[Python-checkins] cpython: Issue #27106: Add test for configparser.__all__
martin.panter
python-checkins at python.org
Fri Sep 9 03:02:52 EDT 2016
https://hg.python.org/cpython/rev/739528288996
changeset: 103394:739528288996
user: Martin Panter <vadmium+py at gmail.com>
date: Fri Sep 09 06:46:48 2016 +0000
summary:
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.
files:
Lib/test/test_configparser.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_configparser.py b/Lib/test/test_configparser.py
--- a/Lib/test/test_configparser.py
+++ b/Lib/test/test_configparser.py
@@ -2052,5 +2052,11 @@
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()
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list