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
|
|
@ -2,20 +2,20 @@ from using_extend import *
|
|||
|
||||
f = FooBar()
|
||||
if f.blah(3) != 3:
|
||||
raise RuntimeError, "blah(int)"
|
||||
raise RuntimeError("blah(int)")
|
||||
|
||||
if f.blah(3.5) != 3.5:
|
||||
raise RuntimeError, "blah(double)"
|
||||
raise RuntimeError("blah(double)")
|
||||
|
||||
if f.blah("hello") != "hello":
|
||||
raise RuntimeError, "blah(char *)"
|
||||
raise RuntimeError("blah(char *)")
|
||||
|
||||
if f.blah(3, 4) != 7:
|
||||
raise RuntimeError, "blah(int,int)"
|
||||
raise RuntimeError("blah(int,int)")
|
||||
|
||||
if f.blah(3.5, 7.5) != (3.5 + 7.5):
|
||||
raise RuntimeError, "blah(double,double)"
|
||||
raise RuntimeError("blah(double,double)")
|
||||
|
||||
|
||||
if f.duh(3) != 3:
|
||||
raise RuntimeError, "duh(int)"
|
||||
raise RuntimeError("duh(int)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue