diff options
author | Benoit Foucher <benoit@zeroc.com> | 2014-11-05 19:05:58 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2014-11-05 19:05:58 +0100 |
commit | 4abc9627f945c0b765cfaa326a38a548470890da (patch) | |
tree | 0f9ad49ec73e1c49a4715b4534634f0b1f5932da /py/test/Ice/exceptions/AllTests.py | |
parent | WinRT installer remove 8.0 SDK registry key (diff) | |
download | ice-4abc9627f945c0b765cfaa326a38a548470890da.tar.bz2 ice-4abc9627f945c0b765cfaa326a38a548470890da.tar.xz ice-4abc9627f945c0b765cfaa326a38a548470890da.zip |
Fixed ICE-5486: added support for MessageSizeMax OA property
Diffstat (limited to 'py/test/Ice/exceptions/AllTests.py')
-rw-r--r-- | py/test/Ice/exceptions/AllTests.py | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/py/test/Ice/exceptions/AllTests.py b/py/test/Ice/exceptions/AllTests.py index e49b2dfcc9c..1baaa87751c 100644 --- a/py/test/Ice/exceptions/AllTests.py +++ b/py/test/Ice/exceptions/AllTests.py @@ -473,13 +473,14 @@ def allTests(communicator): print("ok") + if thrower.ice_getConnection(): sys.stdout.write("testing memory limit marshal exception..."); sys.stdout.flush(); try: thrower.throwMemoryLimitException(array.array('B')); test(False) - except Ice.UnknownLocalException: + except Ice.MemoryLimitException: pass except: print(sys.exc_info()) @@ -488,21 +489,12 @@ def allTests(communicator): try: thrower.throwMemoryLimitException(bytearray(20 * 1024)) # 20KB test(False) - except Ice.MemoryLimitException: - pass - except: - test(False) - - try: - thrower.end_throwMemoryLimitException(thrower.begin_throwMemoryLimitException(bytearray(20 * 1024))) # 20KB - test(False) - except Ice.MemoryLimitException: + except Ice.ConnectionLostException: pass except: test(False) - print("ok"); - + print("ok"); sys.stdout.write("catching object not exist exception... ") sys.stdout.flush() |