summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_baseexception.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_baseexception.py')
-rw-r--r--Lib/test/test_baseexception.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_baseexception.py b/Lib/test/test_baseexception.py
index 6dc06c5..e599b02 100644
--- a/Lib/test/test_baseexception.py
+++ b/Lib/test/test_baseexception.py
@@ -78,6 +78,9 @@ class ExceptionClassTests(unittest.TestCase):
last_depth = depth
finally:
inheritance_tree.close()
+
+ # Underscore-prefixed (private) exceptions don't need to be documented
+ exc_set = set(e for e in exc_set if not e.startswith('_'))
self.assertEqual(len(exc_set), 0, "%s not accounted for" % exc_set)
interface_tests = ("length", "args", "str", "repr")