Convert python tests using 2to3
These tests were converted using 2to3 and should be valid using Python 2.7 and Python 3+.
This commit is contained in:
parent
66df0bd224
commit
d4ffa46f41
66 changed files with 551 additions and 551 deletions
|
|
@ -10,18 +10,18 @@ class PyFoo(director_basic.Foo):
|
|||
a = PyFoo()
|
||||
|
||||
if a.ping() != "PyFoo::ping()":
|
||||
raise RuntimeError, a.ping()
|
||||
raise RuntimeError(a.ping())
|
||||
|
||||
if a.pong() != "Foo::pong();PyFoo::ping()":
|
||||
raise RuntimeError, a.pong()
|
||||
raise RuntimeError(a.pong())
|
||||
|
||||
b = director_basic.Foo()
|
||||
|
||||
if b.ping() != "Foo::ping()":
|
||||
raise RuntimeError, b.ping()
|
||||
raise RuntimeError(b.ping())
|
||||
|
||||
if b.pong() != "Foo::pong();Foo::ping()":
|
||||
raise RuntimeError, b.pong()
|
||||
raise RuntimeError(b.pong())
|
||||
|
||||
a = director_basic.A1(1)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue