diff options
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/core/tests/test_deprecations.py | 2 | ||||
| -rw-r--r-- | numpy/lib/function_base.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/tests/test_deprecations.py b/numpy/core/tests/test_deprecations.py index 93e07216b..94583a5ee 100644 --- a/numpy/core/tests/test_deprecations.py +++ b/numpy/core/tests/test_deprecations.py @@ -1246,7 +1246,7 @@ class TestQuantileInterpolationDeprecation(_DeprecationTestCase): [np.percentile, np.quantile, np.nanpercentile, np.nanquantile]) def test_both_passed(self, func): with warnings.catch_warnings(): - # catch the warning, but make sure it does not raise: + # catch the DeprecationWarning so that it does not raise: warnings.simplefilter("always", DeprecationWarning) with pytest.raises(TypeError): func([0., 1.], 0., interpolation="nearest", method="nearest") diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 6d84627cd..a215f63d3 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -61,7 +61,7 @@ __all__ = [ # is made of a integer part (a.k.a 'i' or 'left') and a fractional part # (a.k.a 'g' or 'gamma') # -# Each _QuantileMethods has two properties +# Each method in _QuantileMethods has two properties # get_virtual_index : Callable # The function used to compute the virtual_index. # fix_gamma : Callable |
