Visitar URL original
GH-117195: Avoid assertion error in `object.__sizeof__` by markshannon · Pull Request #117220 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Add test
  • Loading branch information
markshannon committed Mar 25, 2024
commit 7374ca0cbfffbce61907e9ee1fa0d30fe0a006b0
2 changes: 2 additions & 0 deletions Lib/test/test_long.py
Original file line number Diff line number Diff line change
Expand Up @@ -1639,6 +1639,8 @@ class MyInt(int):
MyInt.__basicsize__ + MyInt.__itemsize__ * ndigits
)

# GC-117195 -- This shouldn't crash
Comment thread
markshannon marked this conversation as resolved.
Outdated
object.__sizeof(1)

if __name__ == "__main__":
unittest.main()