From f30d0b5888eb91310dc2e6a29b474d59e529a9bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Dlouh=C3=BD?= Date: Sat, 13 Apr 2019 20:38:58 +0100 Subject: [PATCH] Python3: replace xrange --- tests/test_containers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_containers.py b/tests/test_containers.py index bc347ffa..6f830c6c 100644 --- a/tests/test_containers.py +++ b/tests/test_containers.py @@ -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()):