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 @@ chell = li_attribute_template.Cintint(1, 2, 3)
|
|||
|
||||
def rassert(what, master):
|
||||
if what != master:
|
||||
print what
|
||||
raise RuntimeError
|
||||
raise RuntimeError("what: {}".format(what))
|
||||
|
||||
# Testing primitive by value attribute
|
||||
rassert(chell.a, 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue