diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/APIExerciser.py | 4 | ||||
-rw-r--r-- | tests/test_api.py | 2 |
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() |