summaryrefslogtreecommitdiff
path: root/py/test/Ice/exceptions/ServerAMD.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2013-09-17 11:22:22 +0200
committerBenoit Foucher <benoit@zeroc.com>2013-09-17 11:22:22 +0200
commit0ec6ca2358bbceae6e3bc740e86470df8ffed5c7 (patch)
tree81b8b93edc233cf1863ad84464596d4aa03bfad1 /py/test/Ice/exceptions/ServerAMD.py
parentrevert unintended chante to testicedist.py (diff)
downloadice-0ec6ca2358bbceae6e3bc740e86470df8ffed5c7.tar.bz2
ice-0ec6ca2358bbceae6e3bc740e86470df8ffed5c7.tar.xz
ice-0ec6ca2358bbceae6e3bc740e86470df8ffed5c7.zip
Better fix for ICE-5426 - use bytearray() instead of xrange/range to create byte array
Diffstat (limited to 'py/test/Ice/exceptions/ServerAMD.py')
-rwxr-xr-xpy/test/Ice/exceptions/ServerAMD.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/py/test/Ice/exceptions/ServerAMD.py b/py/test/Ice/exceptions/ServerAMD.py
index 9e2488222a4..a7bc37a4825 100755
--- a/py/test/Ice/exceptions/ServerAMD.py
+++ b/py/test/Ice/exceptions/ServerAMD.py
@@ -19,12 +19,6 @@ if not slice_dir:
Ice.loadSlice('"-I' + slice_dir + '" TestAMD.ice')
import Test
-#
-# There isn't xrange in python 3.x
-#
-if sys.version_info.major >= 3:
- xrange = range
-
def test(b):
if not b:
raise RuntimeError('test assertion failed')
@@ -132,7 +126,7 @@ class ThrowerI(Test.Thrower):
raise RuntimeError("operation `throwAssertException' not supported")
def throwMemoryLimitException_async(self, cb, seq, current=None):
- cb.ice_response(array.array('B', (0 for x in xrange(20 * 1024))))
+ cb.ice_response(bytearray(20 * 1024))
def throwLocalExceptionIdempotent_async(self, cb, current=None):
cb.ice_exception(Ice.TimeoutException())