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 /demoscript/Ice/interleaved.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 'demoscript/Ice/interleaved.py')
-rw-r--r-- | demoscript/Ice/interleaved.py | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/demoscript/Ice/interleaved.py b/demoscript/Ice/interleaved.py index a31204dd1d7..98df018a653 100644 --- a/demoscript/Ice/interleaved.py +++ b/demoscript/Ice/interleaved.py @@ -9,42 +9,40 @@ # ********************************************************************** import sys -from demoscript import * -from scripts import Expect def runseries(client): - print "testing bytes..." + print("testing bytes...") client.expect('==> ', timeout=240) client.sendline('e') client.expect('==> ', timeout=2000) - print "echo: %s " % (client.before) + print("echo: %s " % (client.before)) - print "testing strings..." + print("testing strings...") client.sendline('2') client.expect('==> ', timeout=240) client.sendline('e') client.expect('==> ', timeout=2000) - print "echo: %s " % (client.before) + print("echo: %s " % (client.before)) - print "testing structs with string..." + print("testing structs with string...") client.sendline('3') client.expect('==> ', timeout=240) client.sendline('e') client.expect('==> ', timeout=2000) - print "echo: %s " % (client.before) + print("echo: %s " % (client.before)) - print "testing structs with two ints and double..." + print("testing structs with two ints and double...") client.sendline('4') client.expect('==> ', timeout=240) client.sendline('e') client.expect('==> ', timeout=2000) - print "echo: %s " % (client.before) + print("echo: %s " % (client.before)) def run(client, server): - print "testing with 2 outstanding requests\n" + print("testing with 2 outstanding requests\n") runseries(client) - print "testing with unlimited outstanding requests\n" + print("testing with unlimited outstanding requests\n") client.sendline('o') runseries(client) |