Fix test for python3.8

This commit is contained in:
Luis Moreno
2020-06-19 15:13:01 -04:00
parent 1643d07705
commit 1d557616b1

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):