summaryrefslogtreecommitdiff
path: root/numpy/lib
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2022-06-08 16:35:31 -0700
committerSebastian Berg <sebastian@sipsolutions.net>2022-06-15 11:42:02 -0700
commit974c865219223742a07375bea1f6da246e3326ef (patch)
tree6dc23964217131da259b9976ed4ad78f821e66a6 /numpy/lib
parentdc541a8565da9f14f30a3424ae93259b514f8997 (diff)
downloadnumpy-974c865219223742a07375bea1f6da246e3326ef.tar.gz
API: Add leading underscore to `no_nep50_warning` and `get/set_promotion_state`
Diffstat (limited to 'numpy/lib')
-rw-r--r--numpy/lib/tests/test_function_base.py2
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)