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
|
|
@ -23,8 +23,7 @@ xstr2 = str.lstrip(xstr2, "0")
|
|||
xstr2 = str.upper(xstr2)
|
||||
|
||||
if xstr1 != xstr2:
|
||||
print xstr1, xstr2
|
||||
raise RuntimeError
|
||||
raise RuntimeError("Not equal failed {} {}".format(xstr1, xstr2))
|
||||
|
||||
s = str(a.this)
|
||||
r = repr(a.this)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue