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.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()