diff options
author | Mark Spruiell <mes@zeroc.com> | 2012-04-24 14:16:15 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2012-04-24 14:16:15 -0700 |
commit | 943a48fc5c0a59b892eb746073c71b8dd88815e7 (patch) | |
tree | 421cfedbc60603d02e0b314d9204e9f85dd781c5 /py/test/Slice/keyword/Client.py | |
parent | minor fix to IcePHP getLogger (diff) | |
download | ice-943a48fc5c0a59b892eb746073c71b8dd88815e7.tar.bz2 ice-943a48fc5c0a59b892eb746073c71b8dd88815e7.tar.xz ice-943a48fc5c0a59b892eb746073c71b8dd88815e7.zip |
python 3 support
Diffstat (limited to 'py/test/Slice/keyword/Client.py')
-rwxr-xr-x | py/test/Slice/keyword/Client.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/py/test/Slice/keyword/Client.py b/py/test/Slice/keyword/Client.py index 2ce1dc42280..96c20d5b3f9 100755 --- a/py/test/Slice/keyword/Client.py +++ b/py/test/Slice/keyword/Client.py @@ -15,7 +15,7 @@ for toplevel in [".", "..", "../..", "../../..", "../../../.."]: if os.path.exists(os.path.join(toplevel, "python", "Ice.py")): break else: - raise "can't find toplevel directory!" + raise RuntimeError("can't find toplevel directory!") import Ice @@ -47,7 +47,8 @@ class printI(_and._print): pass def testtypes(): - print("Testing generated type names... "), + sys.stdout.write("Testing generated type names... ") + sys.stdout.flush() a = _and._assert._break b = _and._continue b._def = 0 @@ -74,7 +75,7 @@ def testtypes(): i = printI() j = _and._lambda; en = _and.EnumNone._None - print "ok" + print("ok") def run(args, communicator): communicator.getProperties().setProperty("TestAdapter.Endpoints", "default -p 12010:udp") @@ -82,11 +83,12 @@ def run(args, communicator): adapter.add(execI(), communicator.stringToIdentity("test")) adapter.activate() - print("Testing operation name... "), + sys.stdout.write("Testing operation name... ") + sys.stdout.flush() p = _and.execPrx.uncheckedCast( adapter.createProxy(communicator.stringToIdentity("test"))); p._finally(); - print "ok" + print("ok") testtypes() |