summaryrefslogtreecommitdiff
path: root/py/test/Ice/custom/Server.py
diff options
context:
space:
mode:
Diffstat (limited to 'py/test/Ice/custom/Server.py')
-rwxr-xr-xpy/test/Ice/custom/Server.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/py/test/Ice/custom/Server.py b/py/test/Ice/custom/Server.py
index 256afc9b6e4..dfbb5cb6b84 100755
--- a/py/test/Ice/custom/Server.py
+++ b/py/test/Ice/custom/Server.py
@@ -19,9 +19,6 @@ def test(b):
raise RuntimeError('test assertion failed')
class CustomI(Test.Custom):
- def __init__(self, adapter):
- self._adapter = adapter
-
def opByteString1(self, b1, current=None):
test(isinstance(b1, str))
return (b1, b1)
@@ -75,12 +72,12 @@ class CustomI(Test.Custom):
test(isinstance(val.s4, list))
def shutdown(self, current=None):
- self._adapter.getCommunicator().shutdown()
+ current.adapter.getCommunicator().shutdown()
def run(args, communicator):
communicator.getProperties().setProperty("TestAdapter.Endpoints", "default -p 12010")
adapter = communicator.createObjectAdapter("TestAdapter")
- object = CustomI(adapter)
+ object = CustomI()
adapter.add(object, communicator.stringToIdentity("test"))
adapter.activate()
communicator.waitForShutdown()