MCPcopy 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_picklerMethod · 0.45
test_unpicklerMethod · 0.45
test_sizeofMethod · 0.45
test___sizeof__Method · 0.45
test_sizeofMethod · 0.45
size_functionMethod · 0.45
test_sizeofMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected