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
|
|
@ -9,13 +9,13 @@ if var2.getX() != 2:
|
|||
|
||||
m = cpp11_uniform_initialization.MoreInit()
|
||||
if m.charptr != None:
|
||||
raise RuntimeError, m.charptr
|
||||
raise RuntimeError(m.charptr)
|
||||
m.charptr = "hello sir"
|
||||
if m.charptr != "hello sir":
|
||||
raise RuntimeError, m.charptr
|
||||
raise RuntimeError(m.charptr)
|
||||
if m.more1(m.vi) != 15:
|
||||
raise RuntimeError, m.vi
|
||||
raise RuntimeError(m.vi)
|
||||
if m.more1([-1, 1, 2]) != 2:
|
||||
raise RuntimeError, m.vi
|
||||
raise RuntimeError(m.vi)
|
||||
if m.more1() != 10:
|
||||
raise RuntimeError
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue