mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-17 06:20:27 +00:00
Merge pull request #234 from cjmayo/python3_05b
{python3_05b} Python3: replace xrange
This commit is contained in:
commit
1c82686e7a
1 changed files with 2 additions and 1 deletions
|
|
@ -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()):
|
||||
|
|
|
|||
Loading…
Reference in a new issue