testing formatting to deal with numpy induced precision errors in doctests