MCPcopy Index your code
hub / github.com/RustPython/RustPython / __sizeof__

Method __sizeof__

Lib/test/test_sys.py:1527–1528  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1525 def test_errors(self):
1526 class BadSizeof:
1527 def __sizeof__(self):
1528 raise ValueError
1529 self.assertRaises(ValueError, sys.getsizeof, BadSizeof())
1530
1531 class InvalidSizeof:

Callers 6

test_picklerMethod · 0.45
test_unpicklerMethod · 0.45
test_sizeofMethod · 0.45
test___sizeof__Method · 0.45
test_sizeofMethod · 0.45
test_sizeofMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected