diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2009-04-03 14:41:54 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2009-04-03 14:41:54 -0230 |
commit | d4edcb664ce60c2e4395d534e6759dd8475c5089 (patch) | |
tree | f7322eaeb6472f6506cf85cc4aa6121c19a8d84f /py/test/Ice/custom/Server.py | |
parent | Fixed compile error (diff) | |
download | ice-d4edcb664ce60c2e4395d534e6759dd8475c5089.tar.bz2 ice-d4edcb664ce60c2e4395d534e6759dd8475c5089.tar.xz ice-d4edcb664ce60c2e4395d534e6759dd8475c5089.zip |
Bug 3465 - Remove _adapter members from test where unecessary
Diffstat (limited to 'py/test/Ice/custom/Server.py')
-rwxr-xr-x | py/test/Ice/custom/Server.py | 7 |
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() |