summaryrefslogtreecommitdiff
path: root/python/test
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2016-09-08 13:56:08 -0700
committerMark Spruiell <mes@zeroc.com>2016-09-08 13:56:08 -0700
commit2e78fe1212d27bbcfb049dfa6a56e52db496b816 (patch)
treeff33e5967bbb7ce6aa528dac6db88d4177efe8cb /python/test
parentUpdate java-compat to latest version of builder (diff)
downloadice-2e78fe1212d27bbcfb049dfa6a56e52db496b816.tar.bz2
ice-2e78fe1212d27bbcfb049dfa6a56e52db496b816.tar.xz
ice-2e78fe1212d27bbcfb049dfa6a56e52db496b816.zip
ICE-7333 - Java/C# cross test failure in Ice/optional
Diffstat (limited to 'python/test')
-rwxr-xr-xpython/test/Ice/optional/Server.py3
-rwxr-xr-xpython/test/Ice/optional/ServerAMD.py3
-rw-r--r--python/test/Ice/optional/Test.ice2
-rw-r--r--python/test/Ice/optional/TestAMD.ice2
4 files changed, 10 insertions, 0 deletions
diff --git a/python/test/Ice/optional/Server.py b/python/test/Ice/optional/Server.py
index c865c37b1c3..7dac81076cd 100755
--- a/python/test/Ice/optional/Server.py
+++ b/python/test/Ice/optional/Server.py
@@ -183,6 +183,9 @@ class InitialI(Test.Initial):
def supportsCppStringView(self, current=None):
return False
+ def supportsNullOptional(self, current=None):
+ return True
+
def run(args, communicator):
communicator.getProperties().setProperty("TestAdapter.Endpoints", "default -p 12010:udp")
adapter = communicator.createObjectAdapter("TestAdapter")
diff --git a/python/test/Ice/optional/ServerAMD.py b/python/test/Ice/optional/ServerAMD.py
index bd95c1feb33..5851064e4d9 100755
--- a/python/test/Ice/optional/ServerAMD.py
+++ b/python/test/Ice/optional/ServerAMD.py
@@ -184,6 +184,9 @@ class InitialI(Test.Initial):
def supportsCppStringView_async(self, cb, current=None):
cb.ice_response(False)
+ def supportsNullOptional(self, cb, current=None):
+ cb.ice_response(True)
+
def run(args, communicator):
communicator.getProperties().setProperty("TestAdapter.Endpoints", "default -p 12010:udp")
adapter = communicator.createObjectAdapter("TestAdapter")
diff --git a/python/test/Ice/optional/Test.ice b/python/test/Ice/optional/Test.ice
index bf98d343436..a4b05fe844a 100644
--- a/python/test/Ice/optional/Test.ice
+++ b/python/test/Ice/optional/Test.ice
@@ -306,6 +306,8 @@ class Initial
bool supportsCsharpSerializable();
bool supportsCppStringView();
+
+ bool supportsNullOptional();
};
};
diff --git a/python/test/Ice/optional/TestAMD.ice b/python/test/Ice/optional/TestAMD.ice
index 9ef8436a35e..8f315c90d83 100644
--- a/python/test/Ice/optional/TestAMD.ice
+++ b/python/test/Ice/optional/TestAMD.ice
@@ -307,6 +307,8 @@ class Initial
bool supportsCsharpSerializable();
bool supportsCppStringView();
+
+ bool supportsNullOptional();
};
};