Skip to content

Commit cff813b

Browse files
committed
Add testcase
1 parent 0102cf0 commit cff813b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Lib/test/test_bigmem.py

+9
Original file line numberDiff line numberDiff line change
@@ -1248,6 +1248,15 @@ def test_sort(self, size):
12481248
self.assertEqual(l[-10:], [5] * 10)
12491249

12501250

1251+
class DictTest(unittest.TestCase):
1252+
1253+
@bigmemtest(size=357913941, memuse=160)
1254+
def test_dict(self, size):
1255+
# https://github.com/python/cpython/issues/102701
1256+
d = dict.fromkeys(range(size))
1257+
d[size] = 1
1258+
1259+
12511260
if __name__ == '__main__':
12521261
if len(sys.argv) > 1:
12531262
support.set_memlimit(sys.argv[1])

0 commit comments

Comments
 (0)