From 4058ada173f6e868e70a667078f5a770ae8efa7c Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Wed, 25 Sep 2019 17:26:36 +0200 Subject: Fixed Python bug related to invalid return parameters, fixes #550 --- python/test/Ice/exceptions/ServerAMD.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'python/test/Ice/exceptions/ServerAMD.py') diff --git a/python/test/Ice/exceptions/ServerAMD.py b/python/test/Ice/exceptions/ServerAMD.py index 8bd9a6f35a8..b9418e7e29d 100755 --- a/python/test/Ice/exceptions/ServerAMD.py +++ b/python/test/Ice/exceptions/ServerAMD.py @@ -136,6 +136,12 @@ class ThrowerI(Test.Thrower): f.set_exception(Test.A()) return f + def throwMarshalException(self, current): + if "return" in current.ctx: + return Ice.Future.completed(("", 0)) + if "param" in current.ctx: + return Ice.Future.completed((0, "")) + return Ice.Future.completed(None) class ServerAMD(TestHelper): -- cgit v1.2.3