Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Updated test_baseexception from 3.12.2
Signed-off-by: Hanif Ariffin <hanif.ariffin.4326@gmail.com>
  • Loading branch information
hbina committed Apr 5, 2025
commit cebe57a60923c89123389bc5c0fb57afe77f299c
5 changes: 3 additions & 2 deletions Lib/test/test_baseexception.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,10 @@ def test_inheritance(self):
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('_'))
# RUSTPYTHON specific
exc_set.discard("JitError")

self.assertEqual(len(exc_set), 0, "%s not accounted for" % exc_set)

interface_tests = ("length", "args", "str", "repr")
Expand Down Expand Up @@ -135,7 +136,7 @@ class Value(str):

d[HashThisKeyWillClearTheDict()] = Value() # refcount of Value() is 1 now

# Exception.__setstate__ should aquire a strong reference of key and
# Exception.__setstate__ should acquire a strong reference of key and
# value in the dict. Otherwise, Value()'s refcount would go below
# zero in the tp_hash call in PyObject_SetAttr(), and it would cause
# crash in GC.
Expand Down