diff options
Diffstat (limited to 'numpy/lib')
-rw-r--r-- | numpy/lib/tests/test_function_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py index b6ea12158..64318255b 100644 --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -2981,7 +2981,7 @@ class TestPercentile: input_dtype, expected_dtype): expected_dtype = np.dtype(expected_dtype) - if np.get_promotion_state() == "legacy": + if np._get_promotion_state() == "legacy": expected_dtype = np.promote_types(expected_dtype, np.float64) arr = np.asarray([15.0, 20.0, 35.0, 40.0, 50.0], dtype=input_dtype) |