diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2020-07-23 11:12:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-23 11:12:46 +0100 |
commit | 8c3556f94b6aaf8a6e7d72a4c103d1c3d93619e2 (patch) | |
tree | bb3f134b2d067f4089be6a6dae5d00168f5afd63 /numpy/lib/tests | |
parent | c3a887e55e0a14e3a31460e7a79e5f7f965fea68 (diff) | |
download | numpy-revert-16248-edge.tar.gz |
Revert "MRG, ENH: added edge keyword argument to digitize"revert-16248-edge
Diffstat (limited to 'numpy/lib/tests')
-rw-r--r-- | numpy/lib/tests/test_function_base.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py index 32f660772..eb2fc3311 100644 --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -1712,12 +1712,6 @@ class TestDigitize: bins = [1, 1, 0] assert_array_equal(digitize(x, bins, False), [3, 2, 0, 0]) assert_array_equal(digitize(x, bins, True), [3, 3, 2, 0]) - bins = [-1, 0, 1, 2] - assert_array_equal(digitize(x, bins, False, True), [1, 2, 3, 3]) - assert_array_equal(digitize(x, bins, True, True), [1, 1, 2, 3]) - bins = [2, 1, 0, -1] - assert_array_equal(digitize(x, bins, False, True), [3, 2, 1, 1]) - assert_array_equal(digitize(x, bins, True, True), [3, 3, 2, 1]) bins = [1, 1, 1, 1] assert_array_equal(digitize(x, bins, False), [0, 0, 4, 4]) assert_array_equal(digitize(x, bins, True), [0, 0, 0, 4]) @@ -1746,7 +1740,6 @@ class TestDigitize: # gh-11022 x = 2**54 # loses precision in a float assert_equal(np.digitize(x, [x - 1, x + 1]), 1) - assert_equal(np.digitize(x, [x - 1, x + 1], False, True), 1) @pytest.mark.xfail( reason="gh-11022: np.core.multiarray._monoticity loses precision") |