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
|
|
@ -6,14 +6,14 @@ c = inherit_missing.Spam()
|
|||
|
||||
x = inherit_missing.do_blah(a)
|
||||
if x != "Foo::blah":
|
||||
print "Whoa! Bad return", x
|
||||
raise RuntimeError("Whoa! Bad return {}".format(x))
|
||||
|
||||
x = inherit_missing.do_blah(b)
|
||||
if x != "Bar::blah":
|
||||
print "Whoa! Bad return", x
|
||||
raise RuntimeError("Whoa! Bad return {}".format(x))
|
||||
|
||||
x = inherit_missing.do_blah(c)
|
||||
if x != "Spam::blah":
|
||||
print "Whoa! Bad return", x
|
||||
raise RuntimeError("Whoa! Bad return {}".format(x))
|
||||
|
||||
inherit_missing.delete_Foo(a)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue