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
|
|
@ -8,5 +8,4 @@ o = wostringstream()
|
|||
o << a << u" " << 2345 << u" " << 1.435 << wends
|
||||
|
||||
if o.str() != "A class 2345 1.435\0":
|
||||
print "\"%s\"" % (o.str(),)
|
||||
raise RuntimeError
|
||||
raise RuntimeError("str failed: \"%s\"".format(o.str()))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue