Remove print statements from Python tests
Use exceptions instead of printing to stdout. Part of an effort to convert Python tests to python 3 syntax.
This commit is contained in:
parent
e535190c34
commit
365d4961d4
40 changed files with 123 additions and 254 deletions
|
|
@ -7,8 +7,7 @@ s = li_std_wstring_inherit.wstring(u"he")
|
|||
s = s + u"llo"
|
||||
|
||||
if s != x:
|
||||
print s, x
|
||||
raise RuntimeError("bad string mapping")
|
||||
raise RuntimeError("bad string mapping {} {}".format(s, x))
|
||||
|
||||
if s[1:4] != x[1:4]:
|
||||
raise RuntimeError("bad string mapping")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue