From 6dc191c2cf11b40a656cc360a355cc1d2700ba78 Mon Sep 17 00:00:00 2001 From: mattip Date: Fri, 28 Feb 2020 15:13:14 +0200 Subject: BUG: fix doctest exception messages --- numpy/lib/function_base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'numpy/lib/function_base.py') diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 2721b04dd..12320ae47 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -4654,7 +4654,9 @@ def append(arr, values, axis=None): >>> np.append([[1, 2, 3], [4, 5, 6]], [7, 8, 9], axis=0) Traceback (most recent call last): ... - ValueError: all the input arrays must have same number of dimensions + ValueError: all the input arrays must have same number of dimensions, but + the array at index 0 has 2 dimension(s) and the array at index 1 has 1 + dimension(s) """ arr = asanyarray(arr) -- cgit v1.2.1