Skip to content

Commit 5303b33

Browse files
committed
Update Lib/test/test_bigmem.py from CPython v3.12.0
1 parent f54b80f commit 5303b33

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎Lib/test/test_bigmem.py‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,6 +1275,15 @@ def test_sort(self, size):
12751275
self.assertEqual(l[-10:], [5] * 10)
12761276

12771277

1278+
class DictTest(unittest.TestCase):
1279+
1280+
@bigmemtest(size=357913941, memuse=160)
1281+
def test_dict(self, size):
1282+
# https://github.com/python/cpython/issues/102701
1283+
d = dict.fromkeys(range(size))
1284+
d[size] = 1
1285+
1286+
12781287
if __name__ == '__main__':
12791288
if len(sys.argv) > 1:
12801289
support.set_memlimit(sys.argv[1])

0 commit comments

Comments
 (0)