diff options
author | Yaroslav Halchenko <debian@onerussian.com> | 2018-10-05 11:27:55 -0400 |
---|---|---|
committer | Yaroslav Halchenko <debian@onerussian.com> | 2018-10-05 11:27:55 -0400 |
commit | 43ecbdc95a09e85f570bb7ce530da72ad78d9cc5 (patch) | |
tree | 998ab64cab6cd571046b8b120e9f33fcf27187ed /numpy/core/getlimits.py | |
parent | 5f3c0c2ba7f0c794a483c7e74722f95bdd3bb827 (diff) | |
download | numpy-43ecbdc95a09e85f570bb7ce530da72ad78d9cc5.tar.gz |
Provide information about what kind is actually not integer kind
Otherwise it is hard to impossible to figure out what is the actual
value which fails the test.
See e.g. failing on 3.4 (only) tests of nibabel:
https://ci.appveyor.com/project/nipy/nibabel/build/1.0.498/job/eechfm1kxroa0rju#L598
Diffstat (limited to 'numpy/core/getlimits.py')
-rw-r--r-- | numpy/core/getlimits.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/getlimits.py b/numpy/core/getlimits.py index e450a660d..0e3c58793 100644 --- a/numpy/core/getlimits.py +++ b/numpy/core/getlimits.py @@ -513,7 +513,7 @@ class iinfo(object): self.bits = self.dtype.itemsize * 8 self.key = "%s%d" % (self.kind, self.bits) if self.kind not in 'iu': - raise ValueError("Invalid integer data type.") + raise ValueError("Invalid integer data type %r." % (self.kind,)) def min(self): """Minimum value of given dtype.""" |