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
|
|
@ -13,7 +13,7 @@ RectangleInt.static_onearg(1)
|
|||
fail = True
|
||||
try:
|
||||
rectangle.setPoint()
|
||||
except TypeError, e:
|
||||
except TypeError as e:
|
||||
fail = False
|
||||
if fail:
|
||||
raise RuntimeError("argument count check failed")
|
||||
|
|
@ -22,7 +22,7 @@ if fail:
|
|||
fail = True
|
||||
try:
|
||||
rectangle.getPoint(0)
|
||||
except TypeError, e:
|
||||
except TypeError as e:
|
||||
fail = False
|
||||
if fail:
|
||||
raise RuntimeError("argument count check failed")
|
||||
|
|
@ -30,7 +30,7 @@ if fail:
|
|||
fail = True
|
||||
try:
|
||||
RectangleInt.static_noargs(0)
|
||||
except TypeError, e:
|
||||
except TypeError as e:
|
||||
fail = False
|
||||
if fail:
|
||||
raise RuntimeError("argument count check failed")
|
||||
|
|
@ -38,7 +38,7 @@ if fail:
|
|||
fail = True
|
||||
try:
|
||||
RectangleInt.static_onearg()
|
||||
except TypeError, e:
|
||||
except TypeError as e:
|
||||
fail = False
|
||||
if fail:
|
||||
raise RuntimeError("argument count check failed")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue