summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2024-05-23 10:06:10 (GMT)
committerGitHub <noreply@github.com>2024-05-23 10:06:10 (GMT)
commit406ffb5293a8c9ca315bf63de1ee36a9b33f9aaf (patch)
tree8ddbaba9cbd394a1d3b84723bbfec4a38149d178 /Lib/test
parentc85e3526736d1cf8226686fdf4f5117e105a7b13 (diff)
downloadcpython-406ffb5293a8c9ca315bf63de1ee36a9b33f9aaf.zip
cpython-406ffb5293a8c9ca315bf63de1ee36a9b33f9aaf.tar.gz
cpython-406ffb5293a8c9ca315bf63de1ee36a9b33f9aaf.tar.bz2
GH-117195: Avoid assertion error in `object.__sizeof__` (GH-117220)
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_long.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_long.py b/Lib/test/test_long.py
index d299c34..41b973d 100644
--- a/Lib/test/test_long.py
+++ b/Lib/test/test_long.py
@@ -1639,6 +1639,8 @@ class LongTest(unittest.TestCase):
MyInt.__basicsize__ + MyInt.__itemsize__ * ndigits
)
+ # GH-117195 -- This shouldn't crash
+ object.__sizeof__(1)
if __name__ == "__main__":
unittest.main()