summaryrefslogtreecommitdiff
path: root/py/test/Ice/exceptions/TestI.py
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2013-07-04 11:20:07 +0200
committerBenoit Foucher <benoit@zeroc.com>2013-07-04 11:20:07 +0200
commit0df052034b03907de02d8eac162e84e5ba50bfd5 (patch)
treef424142a198431b2a8981bfaebe79410ef4f5481 /py/test/Ice/exceptions/TestI.py
parentFixed ICE-5340 - FileLock jlint errors in android (diff)
downloadice-0df052034b03907de02d8eac162e84e5ba50bfd5.tar.bz2
ice-0df052034b03907de02d8eac162e84e5ba50bfd5.tar.xz
ice-0df052034b03907de02d8eac162e84e5ba50bfd5.zip
Fixed ICE-5369 - fixed asserting on AMD response if memory limit exception was raised
Diffstat (limited to 'py/test/Ice/exceptions/TestI.py')
-rw-r--r--py/test/Ice/exceptions/TestI.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/py/test/Ice/exceptions/TestI.py b/py/test/Ice/exceptions/TestI.py
index f1398a54258..64ed7f470fe 100644
--- a/py/test/Ice/exceptions/TestI.py
+++ b/py/test/Ice/exceptions/TestI.py
@@ -7,7 +7,7 @@
#
# **********************************************************************
-import Ice, Test
+import Ice, Test, array
class ThrowerI(Test.Thrower):
def shutdown(self, current=None):
@@ -89,6 +89,9 @@ class ThrowerI(Test.Thrower):
def throwAssertException(self, current=None):
raise RuntimeError("operation `throwAssertException' not supported")
+ def throwMemoryLimitException(self, seq, current=None):
+ return array.array('B', (0 for x in xrange(20 * 1024)))
+
def throwLocalExceptionIdempotent(self, current=None):
raise Ice.TimeoutException()