diff options
author | Sebastian Berg <sebastianb@nvidia.com> | 2022-12-22 21:19:15 +0100 |
---|---|---|
committer | Sebastian Berg <sebastianb@nvidia.com> | 2022-12-22 21:19:15 +0100 |
commit | d9ef957d1ec7c6696c0a8183d03d623b68a01c82 (patch) | |
tree | 0112fd5070f916637b63965fbb48264cbc0bfe8d | |
parent | ae81e656ff8ce790dde78fc8b987a3830aa4cec8 (diff) | |
download | numpy-d9ef957d1ec7c6696c0a8183d03d623b68a01c82.tar.gz |
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
-rw-r--r-- | numpy/core/tests/test_strings.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/tests/test_strings.py b/numpy/core/tests/test_strings.py index 27ca3b303..42f775e85 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] |