From d9ef957d1ec7c6696c0a8183d03d623b68a01c82 Mon Sep 17 00:00:00 2001 From: Sebastian Berg Date: Thu, 22 Dec 2022 21:19:15 +0100 Subject: [PATCH] TST: Fixup string cast test to not use `tiny` There is not much value in these values anyway probably, but tiny isn't reliably for double-double (maybe it should be, but that is a different issue). Fixup for gh-22855 and gh-22868 --- numpy/core/tests/test_strings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/numpy/core/tests/test_strings.py b/numpy/core/tests/test_strings.py index 27ca3b303a42..42f775e857b8 100644 --- a/numpy/core/tests/test_strings.py +++ b/numpy/core/tests/test_strings.py @@ -90,8 +90,8 @@ def test_string_comparisons_empty(op, ufunc, sym, dtypes): def test_float_to_string_cast(str_dt, float_dt): float_dt = np.dtype(float_dt) fi = np.finfo(float_dt) - arr = np.array([np.nan, np.inf, -np.inf, fi.max, fi.tiny], dtype=float_dt) - expected = ["nan", "inf", "-inf", repr(fi.max), repr(fi.tiny)] + arr = np.array([np.nan, np.inf, -np.inf, fi.max, fi.min], dtype=float_dt) + expected = ["nan", "inf", "-inf", repr(fi.max), repr(fi.min)] if float_dt.kind == 'c': expected = [f"({r}+0j)" for r in expected]