fix #6091, message for non-finite or length mismatch in test_approx_eq