Merge pull request #24268 from eduNEXT/lmm/safe_exec

[BD-6] Fix test for python3.8
This commit is contained in:
Awais Qureshi
2020-06-24 13:39:35 +05:00
committed by GitHub

View File

@@ -199,7 +199,10 @@ class TestUpdateHash(unittest.TestCase):
"""
d1 = {k: 1 for k in "abcdefghijklmnopqrstuvwxyz"}
d2 = dict(d1)
d2 = {k: 1 for k in "bcdefghijklmnopqrstuvwxyza"}
# TODO: remove the next lines once we are in python3.8
# since python3.8 dict preserve the order of insertion
# and therefore d2 and d1 keys are already in different order.
for i in range(10000):
d2[i] = 1
for i in range(10000):