Python3: replace xrange

This commit is contained in:
Petr Dlouhý 2019-04-13 20:38:58 +01:00 committed by Chris Mayo
parent 75626d456a
commit f30d0b5888

View file

@ -22,6 +22,7 @@ import unittest
import random
import linkcheck.containers
from builtins import range
class TestAttrDict (unittest.TestCase):
@ -69,7 +70,7 @@ class TestListDict (unittest.TestCase):
def test_sorting (self):
self.assertTrue(not self.d)
toinsert = random.sample(xrange(10000000), 60)
toinsert = random.sample(range(10000000), 60)
for x in toinsert:
self.d[x] = x
for i, k in enumerate(self.d.keys()):