From d544b8eb3fb08ea675c2ba3de6425491f88c535d Mon Sep 17 00:00:00 2001 From: Matthew Barber Date: Wed, 6 Oct 2021 17:40:43 +0100 Subject: [PATCH] Clarified logic for `xps.from_dtype()` minimisation test --- hypothesis-python/tests/array_api/test_from_dtype.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypothesis-python/tests/array_api/test_from_dtype.py b/hypothesis-python/tests/array_api/test_from_dtype.py index 998e3e5885..709a954033 100644 --- a/hypothesis-python/tests/array_api/test_from_dtype.py +++ b/hypothesis-python/tests/array_api/test_from_dtype.py @@ -101,4 +101,4 @@ def test_from_dtype_with_kwargs(data, dtype, kwargs, predicate): def test_can_minimize_floats(): """Inferred float strategy minimizes to a good example.""" smallest = minimal(xps.from_dtype(xp.float32), lambda n: n >= 1.0) - assert smallest in (1, 50) + assert smallest == 1