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/servantLocator/TestAMDI.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'python/test/Ice/servantLocator/TestAMDI.py') diff --git a/python/test/Ice/servantLocator/TestAMDI.py b/python/test/Ice/servantLocator/TestAMDI.py index 0fc254af645..dae02342251 100644 --- a/python/test/Ice/servantLocator/TestAMDI.py +++ b/python/test/Ice/servantLocator/TestAMDI.py @@ -101,6 +101,12 @@ class ServantLocatorI(Ice.ServantLocator): if current.id.name == "unknown": return None + if current.id.name == "invalidReturnValue": + return (45, 12) + + if current.id.name == "invalidReturnType": + return "invalid" + test(current.id.name == "locate" or current.id.name == "finished") if current.id.name == "locate": self.exception(current) -- cgit v1.2.3