Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
DEP: Remove TestQuantileInterpolationDeprecation
  • Loading branch information
jorenham committed Oct 15, 2025
commit c162a27759c72538b5d054db0ad2c3c618100b4e
18 changes: 0 additions & 18 deletions numpy/_core/tests/test_deprecations.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,24 +215,6 @@ def test_not_deprecated(self, name: str) -> None:
self.assert_not_deprecated(lambda: getattr(self.ctypes, name))


class TestQuantileInterpolationDeprecation(_DeprecationTestCase):
# Deprecated 2021-11-08, NumPy 1.22
@pytest.mark.parametrize("func",
[np.percentile, np.quantile, np.nanpercentile, np.nanquantile])
def test_deprecated(self, func):
self.assert_deprecated(
lambda: func([0., 1.], 0., interpolation="linear"))
self.assert_deprecated(
lambda: func([0., 1.], 0., interpolation="nearest"))

@pytest.mark.parametrize("func",
[np.percentile, np.quantile, np.nanpercentile, np.nanquantile])
def test_both_passed(self, func):
with pytest.warns(DeprecationWarning):
with pytest.raises(TypeError):
func([0., 1.], 0., interpolation="nearest", method="nearest")


class TestPyIntConversion(_DeprecationTestCase):
message = r".*stop allowing conversion of out-of-bound.*"

Expand Down
Loading