summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-19 18:03:46 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-19 18:03:46 +0200
commite1c22fad3fffb485da400e4b34c094f201a2c72e (patch)
treed360610cdf65e2f1906d3cc9c891f6b80066859d /tests
parentPEP-8, Python Zen, refactor and reduce code (part 7 in master module/database) (diff)
downloadpyload-e1c22fad3fffb485da400e4b34c094f201a2c72e.tar.xz
range -> xrange
Diffstat (limited to 'tests')
-rw-r--r--tests/APIExerciser.py4
-rw-r--r--tests/test_api.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/APIExerciser.py b/tests/APIExerciser.py
index d7300b1a5..f4b082479 100644
--- a/tests/APIExerciser.py
+++ b/tests/APIExerciser.py
@@ -17,7 +17,7 @@ from pyload.remote.thriftbackend.ThriftClient import ThriftClient, Destination
def createURLs():
""" create some urls, some may fail """
urls = []
- for x in range(0, randint(20, 100)):
+ for x in xrange(0, randint(20, 100)):
name = "DEBUG_API"
if randint(0, 5) == 5:
name = "" #: this link will fail
@@ -34,7 +34,7 @@ sumCalled = 0
def startApiExerciser(core, n):
- for _i in range(n):
+ for _i in xrange(n):
APIExerciser(core).start()
diff --git a/tests/test_api.py b/tests/test_api.py
index 13e783d54..1e02d8aa3 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -20,5 +20,5 @@ class TestApi(object):
@nottest
def test_random(self):
- for _i in range(0, 100):
+ for _i in xrange(0, 100):
self.api.testAPI()