diff options
author | Benoit Foucher <benoit@zeroc.com> | 2013-09-17 11:22:22 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2013-09-17 11:22:22 +0200 |
commit | 0ec6ca2358bbceae6e3bc740e86470df8ffed5c7 (patch) | |
tree | 81b8b93edc233cf1863ad84464596d4aa03bfad1 /py/test/Ice/exceptions/TestI.py | |
parent | revert unintended chante to testicedist.py (diff) | |
download | ice-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/TestI.py')
-rw-r--r-- | py/test/Ice/exceptions/TestI.py | 2 |
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() |