summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2019-08-14 18:40:51 -0600
committerGitHub <noreply@github.com>2019-08-14 18:40:51 -0600
commitd1a29d2a8416eb15890cc3f3f7c4619c986d8f40 (patch)
tree0c727b0cffcd5c2becc5bc7483c01636d1d1dd14 /numpy
parent908fa68a1978ea0826f1761ea5688e8c58111ae9 (diff)
parent6e412490ce27ac6b528e49a44b7c1c5bf29622db (diff)
downloadnumpy-d1a29d2a8416eb15890cc3f3f7c4619c986d8f40.tar.gz
Merge pull request #14270 from aleju/fix_exception
BUG: Fix formatting error in exception message
Diffstat (limited to 'numpy')
-rw-r--r--numpy/random/common.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/random/common.pyx b/numpy/random/common.pyx
index 6ad5f5b21..74cd5f033 100644
--- a/numpy/random/common.pyx
+++ b/numpy/random/common.pyx
@@ -227,7 +227,7 @@ cdef check_output(object out, object dtype, object size):
raise ValueError('Supplied output array is not contiguous, writable or aligned.')
if out_array.dtype != dtype:
raise TypeError('Supplied output array has the wrong type. '
- 'Expected {0}, got {0}'.format(dtype, out_array.dtype))
+ 'Expected {0}, got {1}'.format(np.dtype(dtype), out_array.dtype))
if size is not None:
try:
tup_size = tuple(size)