diff options
Diffstat (limited to 'python/test/Ice/exceptions/AllTests.py')
-rw-r--r-- | python/test/Ice/exceptions/AllTests.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/python/test/Ice/exceptions/AllTests.py b/python/test/Ice/exceptions/AllTests.py index 3aa59ab16f4..762058d61ef 100644 --- a/python/test/Ice/exceptions/AllTests.py +++ b/python/test/Ice/exceptions/AllTests.py @@ -813,6 +813,25 @@ def allTests(helper, communicator): print("ok") + sys.stdout.write("catching unknown non-Ice exception with futures... ") + sys.stdout.flush() + try: + try: + thrower.throwMarshalException(context={"response":""}) + except Ice.UnknownLocalException as ex: + test("::Ice::MarshalException" in str(ex)) + try: + thrower.throwMarshalException(context={"param":""}) + except Ice.UnknownLocalException as ex: + test("::Ice::MarshalException" in str(ex)) + try: + thrower.throwMarshalException() + except Ice.UnknownLocalException as ex: + test("::Ice::MarshalException" in str(ex)) + except Ice.OperationNotExistException: + pass + print("ok") + sys.stdout.write("catching exact types with AMI mapping... ") sys.stdout.flush() |