diff --git a/test/functional/swift_test_client.py b/test/functional/swift_test_client.py index 0232dbabb0..c7766d5b00 100644 --- a/test/functional/swift_test_client.py +++ b/test/functional/swift_test_client.py @@ -65,7 +65,7 @@ class ResponseError(Exception): def listing_empty(method): - for i in xrange(0, 6): + for i in xrange(6): if len(method()) == 0: return True diff --git a/test/unit/common/middleware/test_ratelimit.py b/test/unit/common/middleware/test_ratelimit.py index aea1187583..d80895834a 100644 --- a/test/unit/common/middleware/test_ratelimit.py +++ b/test/unit/common/middleware/test_ratelimit.py @@ -158,7 +158,7 @@ class TestRateLimit(unittest.TestCase): def _run(self, callable_func, num, rate, check_time=True): global time_ticker begin = time.time() - for x in range(0, num): + for x in range(num): callable_func() end = time.time() total_time = float(num) / rate - 1.0 / rate # 1st request not limited diff --git a/test/unit/obj/test_expirer.py b/test/unit/obj/test_expirer.py index 493de0ff24..4329eef211 100644 --- a/test/unit/obj/test_expirer.py +++ b/test/unit/obj/test_expirer.py @@ -157,7 +157,7 @@ class TestObjectExpirer(TestCase): x.swift = InternalClient(containers) deleted_objects = {} - for i in xrange(0, 3): + for i in xrange(3): x.process = i x.run_once() self.assertNotEqual(deleted_objects, x.deleted_objects) diff --git a/test/unit/proxy/test_server.py b/test/unit/proxy/test_server.py index 1e64ebbbc2..73b531ee57 100644 --- a/test/unit/proxy/test_server.py +++ b/test/unit/proxy/test_server.py @@ -6881,7 +6881,7 @@ class TestProxyObjectPerformance(unittest.TestCase): self.obj_len = obj_len def test_GET_debug_large_file(self): - for i in range(0, 10): + for i in range(10): start = time.time() prolis = _test_sockets[0]