diff options
Diffstat (limited to 'python/test/Ice/servantLocator/Client.py')
-rwxr-xr-x | python/test/Ice/servantLocator/Client.py | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/python/test/Ice/servantLocator/Client.py b/python/test/Ice/servantLocator/Client.py index 86d5f0b8dd9..4c588c1e8b2 100755 --- a/python/test/Ice/servantLocator/Client.py +++ b/python/test/Ice/servantLocator/Client.py @@ -8,17 +8,14 @@ # # ********************************************************************** -import os, sys +from TestHelper import TestHelper +TestHelper.loadSlice("Test.ice") +import AllTests -import Ice -Ice.loadSlice('Test.ice') -import Test, AllTests -class TestClient(Ice.Application): - def run(self, args): - obj = AllTests.allTests(self.communicator(), False) - obj.shutdown() - return 0 +class Client(TestHelper): -app = TestClient() -sys.exit(app.main(sys.argv)) + def run(self, args): + with self.initialize(args=args) as communicator: + obj = AllTests.allTests(self, communicator) + obj.shutdown() |