tests: Make printing of floats hopefully more portable.
This commit is contained in:
parent
d112cbfd7c
commit
c3ab90da46
|
@ -6,6 +6,8 @@ except:
|
|||
def my_print(o):
|
||||
if isinstance(o, dict):
|
||||
print('sorted dict', sorted(o.items()))
|
||||
elif isinstance(o, float):
|
||||
print('%.3f' % o)
|
||||
else:
|
||||
print(o)
|
||||
|
||||
|
|
Loading…
Reference in New Issue