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
|
|
@ -33,8 +33,7 @@ if vu[2] != std_containers.videntu(vu)[2]:
|
|||
|
||||
|
||||
if v[0:3][1] != vu[0:3][1]:
|
||||
print v[0:3][1], vu[0:3][1]
|
||||
raise RuntimeError, "bad getslice"
|
||||
raise RuntimeError("bad getslice {} {}".format(v[0:3][1], vu[0:3][1]))
|
||||
|
||||
|
||||
m = ((1, 2, 3), (2, 3), (3, 4))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue