https://github.com/python/cpython/commit/312a32a74296229ae1c0c103a3ad2e31af79ff39 commit: 312a32a74296229ae1c0c103a3ad2e31af79ff39 branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: encukou <[email protected]> date: 2024-06-27T15:19:20+02:00 summary:
[3.13] gh-119521: Remove _IncompleteInputError from the docs (GH-120993) (GH-121076) gh-119521: Remove _IncompleteInputError from the docs (GH-120993) (cherry picked from commit 1167a9a30b4b2f327ed987e845e378990d1ae6bf) Co-authored-by: Petr Viktorin <[email protected]> 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]
