mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
PEP 415: Implement suppression of __context__ display with an exception attribute
This replaces the original PEP 409 implementation. See #14133.
This commit is contained in:
parent
d91dc62379
commit
d5a1c44455
12 changed files with 80 additions and 79 deletions
|
@ -700,14 +700,14 @@ class SizeofTest(unittest.TestCase):
|
|||
class C(object): pass
|
||||
check(C.__dict__, size(h + 'P'))
|
||||
# BaseException
|
||||
check(BaseException(), size(h + '5P'))
|
||||
check(BaseException(), size(h + '5Pi'))
|
||||
# UnicodeEncodeError
|
||||
check(UnicodeEncodeError("", "", 0, 0, ""), size(h + '5P 2P2PP'))
|
||||
check(UnicodeEncodeError("", "", 0, 0, ""), size(h + '5Pi 2P2PP'))
|
||||
# UnicodeDecodeError
|
||||
# XXX
|
||||
# check(UnicodeDecodeError("", "", 0, 0, ""), size(h + '5P2PP'))
|
||||
# UnicodeTranslateError
|
||||
check(UnicodeTranslateError("", 0, 1, ""), size(h + '5P 2P2PP'))
|
||||
check(UnicodeTranslateError("", 0, 1, ""), size(h + '5Pi 2P2PP'))
|
||||
# ellipses
|
||||
check(Ellipsis, size(h + ''))
|
||||
# EncodingMap
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue