diff options
| author | Thomas Wouters <thomas@python.org> | 2024-06-27 18:36:45 (GMT) |
|---|---|---|
| committer | Thomas Wouters <thomas@python.org> | 2024-06-27 18:36:45 (GMT) |
| commit | 065febe6a5635b852c6bc38195d0aafc4c8e69fd (patch) | |
| tree | be4bb691cb30d881124b705ed6bf9fb804bb945d /Lib/test/test_baseexception.py | |
| parent | 71d41f4e7da78117b99989d4b0d08f4a619e5fed (diff) | |
| parent | 312a32a74296229ae1c0c103a3ad2e31af79ff39 (diff) | |
| download | cpython-065febe6a5635b852c6bc38195d0aafc4c8e69fd.zip cpython-065febe6a5635b852c6bc38195d0aafc4c8e69fd.tar.gz cpython-065febe6a5635b852c6bc38195d0aafc4c8e69fd.tar.bz2 | |
Merge branch '3.13' of https://github.com/python/cpython into 3.13
Diffstat (limited to 'Lib/test/test_baseexception.py')
| -rw-r--r-- | Lib/test/test_baseexception.py | 3 |
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") |
