From 5db1c6a48c9bf626ad171caab6085eec5b7408ea Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 15 May 2020 00:00:48 -0700 Subject: changed from large number error to different solution --- numpy/lib/tests/test_function_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/lib/tests/test_function_base.py') diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py index 35225ff21..d6e768a2b 100644 --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -1743,7 +1743,7 @@ class TestDigitize: # gh-11022 x = 2**54 # loses precision in a float assert_equal(np.digitize(x, [x - 1, x + 1]), 1) - assert_raises(ValueError, digitize, x, [x - 1, x + 1], False, True) + assert_equal(np.digitize(x, [x - 1, x + 1], False, True), 1) @pytest.mark.xfail( reason="gh-11022: np.core.multiarray._monoticity loses precision") -- cgit v1.2.1