https://github.com/python/cpython/commit/1167a9a30b4b2f327ed987e845e378990d1ae6bf
commit: 1167a9a30b4b2f327ed987e845e378990d1ae6bf
branch: main
author: Petr Viktorin <[email protected]>
committer: encukou <[email protected]>
date: 2024-06-27T09:09:22+02:00
summary:
gh-119521: Remove _IncompleteInputError from the docs (GH-120993)
files:
M Lib/test/exception_hierarchy.txt
M Lib/test/test_baseexception.py
diff --git a/Lib/test/exception_hierarchy.txt b/Lib/test/exception_hierarchy.txt
index 5e83faab9a6158..f2649aa2d41fef 100644
--- a/Lib/test/exception_hierarchy.txt
+++ b/Lib/test/exception_hierarchy.txt
@@ -45,7 +45,6 @@ BaseException
├── StopAsyncIteration
├── StopIteration
├── SyntaxError
- │ └── _IncompleteInputError
│ └── IndentationError
│ └── TabError
├── SystemError
diff --git a/Lib/test/test_baseexception.py b/Lib/test/test_baseexception.py
index 6dc06c5e4bc9d5..e599b02c17d9c0 100644
--- a/Lib/test/test_baseexception.py
+++ b/Lib/test/test_baseexception.py
@@ -78,6 +78,9 @@ def test_inheritance(self):
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")
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]