mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Update Lib/test/test_bigmem.py from CPython v3.12.0
This commit is contained in:
9
Lib/test/test_bigmem.py
vendored
9
Lib/test/test_bigmem.py
vendored
@@ -1275,6 +1275,15 @@ class ListTest(unittest.TestCase):
|
||||
self.assertEqual(l[-10:], [5] * 10)
|
||||
|
||||
|
||||
class DictTest(unittest.TestCase):
|
||||
|
||||
@bigmemtest(size=357913941, memuse=160)
|
||||
def test_dict(self, size):
|
||||
# https://github.com/python/cpython/issues/102701
|
||||
d = dict.fromkeys(range(size))
|
||||
d[size] = 1
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
if len(sys.argv) > 1:
|
||||
support.set_memlimit(sys.argv[1])
|
||||
|
||||
Reference in New Issue
Block a user