summaryrefslogtreecommitdiff
path: root/py/test/Ice/exceptions/TestI.py
diff options
context:
space:
mode:
Diffstat (limited to 'py/test/Ice/exceptions/TestI.py')
-rw-r--r--py/test/Ice/exceptions/TestI.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/py/test/Ice/exceptions/TestI.py b/py/test/Ice/exceptions/TestI.py
index 64ed7f470fe..84ebcc9e1f5 100644
--- a/py/test/Ice/exceptions/TestI.py
+++ b/py/test/Ice/exceptions/TestI.py
@@ -9,6 +9,12 @@
import Ice, Test, array
+#
+# There isn't xrange in python 3.x
+#
+if sys.version_info.major >= 3:
+ xrange = range
+
class ThrowerI(Test.Thrower):
def shutdown(self, current=None):
current.adapter.getCommunicator().shutdown()