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
|
|
@ -11,7 +11,7 @@ check(global_two(2, 2), 4)
|
|||
fail = True
|
||||
try:
|
||||
global_void(1)
|
||||
except TypeError, e:
|
||||
except TypeError as e:
|
||||
fail = False
|
||||
if fail:
|
||||
raise RuntimeError("argument count check failed")
|
||||
|
|
@ -19,7 +19,7 @@ if fail:
|
|||
fail = True
|
||||
try:
|
||||
global_one()
|
||||
except TypeError, e:
|
||||
except TypeError as e:
|
||||
fail = False
|
||||
if fail:
|
||||
raise RuntimeError("argument count check failed")
|
||||
|
|
@ -27,7 +27,7 @@ if fail:
|
|||
fail = True
|
||||
try:
|
||||
global_one(2, 2)
|
||||
except TypeError, e:
|
||||
except TypeError as e:
|
||||
fail = False
|
||||
|
||||
if fail:
|
||||
|
|
@ -36,7 +36,7 @@ if fail:
|
|||
fail = True
|
||||
try:
|
||||
global_two(1)
|
||||
except TypeError, e:
|
||||
except TypeError as e:
|
||||
fail = False
|
||||
|
||||
if fail:
|
||||
|
|
@ -45,7 +45,7 @@ if fail:
|
|||
fail = True
|
||||
try:
|
||||
global_two(3, 3, 3)
|
||||
except TypeError, e:
|
||||
except TypeError as e:
|
||||
fail = False
|
||||
|
||||
if fail:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue