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/Ice/inheritance/AllTests.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/Ice/inheritance/AllTests.py')
-rw-r--r-- | py/test/Ice/inheritance/AllTests.py | 37 |
1 files changed, 22 insertions, 15 deletions
diff --git a/py/test/Ice/inheritance/AllTests.py b/py/test/Ice/inheritance/AllTests.py index 3a2f243b1f3..acd585bb835 100644 --- a/py/test/Ice/inheritance/AllTests.py +++ b/py/test/Ice/inheritance/AllTests.py @@ -7,26 +7,29 @@ # # ********************************************************************** -import Ice, Test +import Ice, Test, sys def test(b): if not b: raise RuntimeError('test assertion failed') def allTests(communicator): - print "testing stringToProxy... ", + sys.stdout.write("testing stringToProxy... ") + sys.stdout.flush() ref = "initial:default -p 12010" base = communicator.stringToProxy(ref) test(base) - print "ok" + print("ok") - print "testing checked cast... ", + sys.stdout.write("testing checked cast... ") + sys.stdout.flush() initial = Test.InitialPrx.checkedCast(base) test(initial) test(initial == base) - print "ok" + print("ok") - print "getting proxies for class hierarchy... ", + sys.stdout.write("getting proxies for class hierarchy... ") + sys.stdout.flush() ca = initial.caop() cb = initial.cbop() cc = initial.ccop() @@ -37,9 +40,10 @@ def allTests(communicator): test(cb != cc) test(cb != cd) test(cc != cd) - print "ok" + print("ok") - print "getting proxies for interface hierarchy... ", + sys.stdout.write("getting proxies for interface hierarchy... ") + sys.stdout.flush() ia = initial.iaop() ib1 = initial.ib1op() ib2 = initial.ib2op() @@ -49,9 +53,10 @@ def allTests(communicator): test(ia != ic) test(ib1 != ic) test(ib2 != ic) - print "ok" + print("ok") - print "invoking proxy operations on class hierarchy... ", + sys.stdout.write("invoking proxy operations on class hierarchy... ") + sys.stdout.flush() cao = ca.caop(ca) test(cao == ca) cao = ca.caop(cb) @@ -94,9 +99,10 @@ def allTests(communicator): test(cbo == cc) cco = cc.ccop(cc) test(cco == cc) - print "ok" + print("ok") - print "ditto, but for interface hierarchy... ", + sys.stdout.write("ditto, but for interface hierarchy... ") + sys.stdout.flush() iao = ia.iaop(ia) test(iao == ia) iao = ia.iaop(ib1) @@ -173,9 +179,10 @@ def allTests(communicator): ico = ic.icop(ic) test(ico == ic) - print "ok" + print("ok") - print "ditto, but for class implementing interfaces... ", + sys.stdout.write("ditto, but for class implementing interfaces... ") + sys.stdout.flush() cao = cd.caop(cd) test(cao == cd) cbo = cd.cbop(cd) @@ -204,6 +211,6 @@ def allTests(communicator): ib2o = cd.cdop(cd) test(ib2o == cd) - print "ok" + print("ok") return initial |