From 8ca9221ec58e65dbf2ac9d669de216c0366088c1 Mon Sep 17 00:00:00 2001 From: Ross Barnowski Date: Wed, 19 Oct 2022 19:35:25 -0700 Subject: DEP: Add deprecation warning and check warning in test. --- numpy/lib/function_base.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'numpy/lib/function_base.py') diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 67ea54635..414752613 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -3678,6 +3678,11 @@ def msort(a): [3, 4]]) """ + warnings.warn( + "msort is deprecated, use np.sort(a, axis=0) instead", + DeprecationWarning, + stacklevel=3, + ) b = array(a, subok=True, copy=True) b.sort(0) return b -- cgit v1.2.1