diff options
author | Jose <jose@zeroc.com> | 2018-08-06 11:56:42 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2018-08-06 11:56:42 +0200 |
commit | 7972f07a3aa244dcde673b7cb5541e70da9193bb (patch) | |
tree | 117faced1bb36ac256c7d362e11ac1c49e8e8c88 /python/test/Ice/objects/Client.py | |
parent | Update JavaScript tests to use TestHelper class (diff) | |
download | ice-7972f07a3aa244dcde673b7cb5541e70da9193bb.tar.bz2 ice-7972f07a3aa244dcde673b7cb5541e70da9193bb.tar.xz ice-7972f07a3aa244dcde673b7cb5541e70da9193bb.zip |
Python test suite updates
Diffstat (limited to 'python/test/Ice/objects/Client.py')
-rwxr-xr-x | python/test/Ice/objects/Client.py | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/python/test/Ice/objects/Client.py b/python/test/Ice/objects/Client.py index c56e826f89e..ffb88703206 100755 --- a/python/test/Ice/objects/Client.py +++ b/python/test/Ice/objects/Client.py @@ -8,23 +8,14 @@ # # ********************************************************************** -import os, sys, traceback - -import Ice -Ice.loadSlice('Test.ice') -Ice.loadSlice('ClientPrivate.ice') +from TestHelper import TestHelper +TestHelper.loadSlice("Test.ice ClientPrivate.ice") import AllTests -def run(args, communicator): - initial = AllTests.allTests(communicator) - initial.shutdown() - return True -try: - with Ice.initialize(sys.argv) as communicator: - status = run(sys.argv, communicator) -except: - traceback.print_exc() - status = False +class Client(TestHelper): -sys.exit(not status) + def run(self, args): + with self.initialize(args=args) as communicator: + initial = AllTests.allTests(self, communicator) + initial.shutdown() |