MCPcopy Create free account
hub / github.com/python/cpython / test_dict

Method test_dict

Lib/test/test_bigmem.py:1255–1258  ·  view source on GitHub ↗
(self, size)

Source from the content-addressed store, hash-verified

1253
1254 @bigmemtest(size=357913941, memuse=160)
1255 def test_dict(self, size):
1256 # https://github.com/python/cpython/issues/102701
1257 d = dict.fromkeys(range(size))
1258 d[size] = 1
1259
1260
1261class ImmortalityTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 1

fromkeysMethod · 0.45

Tested by

no test coverage detected