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:
William S Fulton 2020-08-13 21:22:47 +01:00
commit 365d4961d4
40 changed files with 123 additions and 254 deletions

View file

@ -11,12 +11,10 @@ if test2() != " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^
raise RuntimeError
if test3("hello") != "hello-suffix":
print test3("hello")
raise RuntimeError
raise RuntimeError("test3(\"hello\")")
if test4("hello") != "hello-suffix":
print test4("hello")
raise RuntimeError
raise RuntimeError("test4(\"hello\")")
if test5(4) != "xxxx":
raise RuntimeError