MCPcopy Index your code
hub / github.com/python/cpython / test_tuple_get_size

Method test_tuple_get_size

Lib/test/test_capi/test_tuple.py:173–179  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

171 # CRASHES size(NULL)
172
173 def test_tuple_get_size(self):
174 # Test PyTuple_GET_SIZE()
175 size = _testcapi.tuple_get_size
176
177 self.assertEqual(size(()), 0)
178 self.assertEqual(size((1, 2)), 2)
179 self.assertEqual(size(TupleSubclass((1, 2))), 2)
180
181 def test_tuple_getitem(self):
182 # Test PyTuple_GetItem()

Callers

nothing calls this directly

Calls 2

TupleSubclassClass · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected