summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2020-02-28 06:44:47 -0700
committerGitHub <noreply@github.com>2020-02-28 06:44:47 -0700
commit62991d50511f75e58c4c57f40e84de25a8d7e7dd (patch)
treecd4d816d771b22950ea6e60fe0be88df045a6c35 /numpy/lib/function_base.py
parent7eaac94d183888639422c7b55471613f1d5bce18 (diff)
parent6dc191c2cf11b40a656cc360a355cc1d2700ba78 (diff)
downloadnumpy-62991d50511f75e58c4c57f40e84de25a8d7e7dd.tar.gz
Merge pull request #15665 from mattip/whoops
BUG: fix doctest exception messages
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r--numpy/lib/function_base.py4
1 files changed, 3 insertions, 1 deletions
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)