diff options
author | Nathaniel J. Smith <njs@pobox.com> | 2012-12-28 13:00:06 +0000 |
---|---|---|
committer | Nathaniel J. Smith <njs@pobox.com> | 2012-12-28 13:00:06 +0000 |
commit | 678ad43878dfae3a85362c549a8a5ab6bf5c48f1 (patch) | |
tree | bad27b7a610134b312dc1595b7f58ec079ebb404 /numpy/lib/tests/test_recfunctions.py | |
parent | ec8236e20db1bbb66df2b5c1bd0c281422a7c9c5 (diff) | |
download | numpy-678ad43878dfae3a85362c549a8a5ab6bf5c48f1.tar.gz |
FIX: remove a spurious check in get_cast_transfer_function
At least, I hope it's spurious. Certainly it's creating a spurious
error message, is unexpected by callers (one of whom specifically
makes the *opposite* check before calling get_cast_transfer_function),
and even if it is a useful check for some reason I can't see, it
certainly doesn't belong in this function (which is otherwise just
taking care of byte-swapping and alignment issues and doesn't know
anything about dtypes). And worst case, we'll have turned an exception
into a crash; even if I'm wrong, this shouldn't cause any code to go
from working to not working, just from broken to slightly-more-broken.
Test and original diagnosis by @cgohlke.
Fixes gh-2798.
Diffstat (limited to 'numpy/lib/tests/test_recfunctions.py')
0 files changed, 0 insertions, 0 deletions