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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/test/Ice/exceptions/TestI.py b/py/test/Ice/exceptions/TestI.py
index 401193c05e5..326c57b6ca2 100644
--- a/py/test/Ice/exceptions/TestI.py
+++ b/py/test/Ice/exceptions/TestI.py
@@ -96,7 +96,7 @@ class ThrowerI(Test.Thrower):
raise RuntimeError("operation `throwAssertException' not supported")
def throwMemoryLimitException(self, seq, current=None):
- return array.array('B', (0 for x in xrange(20 * 1024)))
+ return bytearray(20 * 1024)
def throwLocalExceptionIdempotent(self, current=None):
raise Ice.TimeoutException()