summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChuck Short <chuck.short@canonical.com>2013-05-01 10:25:40 -0500
committerChuck Short <chuck.short@canonical.com>2013-05-01 10:34:16 -0500
commit46e6c86ed42bf3f93ea918e83ab186de18e4c3dd (patch)
treefb25bcc3755517a3ae500e144af46818eccc7813 /tests
parent0c9047cc334578f9f4974c3bc006ba9bc62814d2 (diff)
downloadoslo-46e6c86ed42bf3f93ea918e83ab186de18e4c3dd.tar.gz
oslo-46e6c86ed42bf3f93ea918e83ab186de18e4c3dd.tar.xz
oslo-46e6c86ed42bf3f93ea918e83ab186de18e4c3dd.zip
Use range rather than xrange
Use range rather than xrange to improve python3 compatibiltiy. Change-Id: I5a4434bbd2e5d509f84c3aa668eea8e46262816f Signed-off-by: Chuck Short <chuck.short@canonical.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/rpc/amqp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/rpc/amqp.py b/tests/unit/rpc/amqp.py
index 64a61f3..69d647a 100644
--- a/tests/unit/rpc/amqp.py
+++ b/tests/unit/rpc/amqp.py
@@ -56,7 +56,7 @@ class BaseRpcAMQPTestCase(common.BaseRpcTestCase):
{"method": "echo", "args": {"value": value}})
# Wait for the cast to complete.
- for x in xrange(50):
+ for x in range(50):
if info['unpacked']:
break
greenthread.sleep(0.1)