diff options
author | Benoit Foucher <benoit@zeroc.com> | 2019-09-25 17:26:36 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2019-09-25 17:46:22 +0200 |
commit | 4058ada173f6e868e70a667078f5a770ae8efa7c (patch) | |
tree | 5ecc854afb72d695589e83df666a080a58681ad9 /python/test/Ice/servantLocator/AllTests.py | |
parent | Update .NET Core default target framework to .netcoreapp3.0 (diff) | |
download | ice-4058ada173f6e868e70a667078f5a770ae8efa7c.tar.bz2 ice-4058ada173f6e868e70a667078f5a770ae8efa7c.tar.xz ice-4058ada173f6e868e70a667078f5a770ae8efa7c.zip |
Fixed Python bug related to invalid return parameters, fixes #550
Diffstat (limited to 'python/test/Ice/servantLocator/AllTests.py')
-rw-r--r-- | python/test/Ice/servantLocator/AllTests.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/python/test/Ice/servantLocator/AllTests.py b/python/test/Ice/servantLocator/AllTests.py index 2aabd9103de..19bcf51e56f 100644 --- a/python/test/Ice/servantLocator/AllTests.py +++ b/python/test/Ice/servantLocator/AllTests.py @@ -217,4 +217,16 @@ def allTests(helper, communicator): test(False) print("ok") + sys.stdout.write("testing invalid locate return values ... ") + sys.stdout.flush() + try: + communicator.stringToProxy("invalidReturnValue:{0}".format(helper.getTestEndpoint())).ice_ping() + except Ice.ObjectNotExistException: + pass + try: + communicator.stringToProxy("invalidReturnType:{0}".format(helper.getTestEndpoint())).ice_ping() + except Ice.ObjectNotExistException: + pass + print ("ok") + return obj |