summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2018-09-20 23:21:38 -0700
committerEric Wieser <wieser.eric@gmail.com>2018-09-20 23:24:40 -0700
commitbb72516d9227d8447d9b39e5ab56c17ccdc639ac (patch)
tree0b991fc273100fd935a5e5c47d39caac72045913 /numpy
parent7248c1d8ccfa3643a9286c46bd134b2e113ba85f (diff)
downloadnumpy-bb72516d9227d8447d9b39e5ab56c17ccdc639ac.tar.gz
MAINT: Add a RuntimeError to prove `_typestr` is unused
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/numerictypes.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/core/numerictypes.py b/numpy/core/numerictypes.py
index 1cb32a0ec..60d2d88ec 100644
--- a/numpy/core/numerictypes.py
+++ b/numpy/core/numerictypes.py
@@ -774,6 +774,7 @@ for key in _sctype2char_dict.keys():
for key, val in _typestr.items():
if val not in sctypeDict:
sctypeDict[val] = key
+ raise RuntimeError('{!r}: {!r} was not in sctype'.format(key, val))
# Add additional strings to the sctypeDict