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

Method test_splittable_to_generic_combinedtable

Lib/test/test_dict.py:1075–1085  ·  view source on GitHub ↗

split table must be correctly resized and converted to generic combined table

(self)

Source from the content-addressed store, hash-verified

1073
1074 @support.cpython_only
1075 def test_splittable_to_generic_combinedtable(self):
1076 """split table must be correctly resized and converted to generic combined table"""
1077 class C:
1078 pass
1079
1080 a = C()
1081 a.x = 1
1082 d = a.__dict__
1083 d[2] = 2 # split table is resized to a generic combined table
1084
1085 self.assertEqual(list(d), ['x', 2])
1086
1087 def test_iterator_pickling(self):
1088 for proto in range(pickle.HIGHEST_PROTOCOL + 1):

Callers

nothing calls this directly

Calls 3

listClass · 0.85
CClass · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected