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/slicing/exceptions/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/slicing/exceptions/Server.py')
-rwxr-xr-x | py/test/Ice/slicing/exceptions/Server.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/py/test/Ice/slicing/exceptions/Server.py b/py/test/Ice/slicing/exceptions/Server.py index 87a7e954c1b..f3dd291de9a 100755 --- a/py/test/Ice/slicing/exceptions/Server.py +++ b/py/test/Ice/slicing/exceptions/Server.py @@ -14,11 +14,8 @@ Ice.loadSlice('-I. --all ServerPrivate.ice') import Test class TestI(Test.TestIntf): - def __init__(self, adapter): - self._adapter = adapter - def shutdown(self, current=None): - self._adapter.getCommunicator().shutdown() + current.adapter.getCommunicator().shutdown() def baseAsBase(self, current=None): b = Test.Base() @@ -108,7 +105,7 @@ def run(args, communicator): properties.setProperty("Ice.Warn.Dispatch", "0") properties.setProperty("TestAdapter.Endpoints", "default -p 12010 -t 10000") adapter = communicator.createObjectAdapter("TestAdapter") - object = TestI(adapter) + object = TestI() adapter.add(object, communicator.stringToIdentity("Test")) adapter.activate() communicator.waitForShutdown() |