Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __sizeof__
Method
__sizeof__
Lib/test/test_sys.py:1545–1546 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
1543
def
test_errors(self):
1544
class
BadSizeof:
1545
def
__sizeof__(self):
1546
raise
ValueError
1547
self.assertRaises(ValueError, sys.getsizeof, BadSizeof())
1548
1549
class
InvalidSizeof:
Callers
7
test_pickler
Method · 0.45
test_unpickler
Method · 0.45
test_sizeof
Method · 0.45
test___sizeof__
Method · 0.45
test_sizeof
Method · 0.45
size_function
Method · 0.45
test_sizeof
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected