1# The aim with this test is to hit the maximum resize/rehash size of a dict,
2# where there are no more primes in the table of growing allocation sizes.
3# This value is 54907 items.
4
5d = {}
6try:
7    for i in range(54908):
8        d[i] = i
9except MemoryError:
10    pass
11
12# Just check the dict still has the first value
13print(d[0])
14