-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
BUG: Add a test for Ticket #2189 #397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@njsmith, if you have a minute, can you please review this PR? |
assert_raises(TypeError, np.searchsorted, a, 1.2) | ||
# Ticket #2066, similar problem: | ||
dtype = np.format_parser(['i4', 'i4'], [], []) | ||
a = np.recarray((2, ), dtype) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The use of format_parser is pretty pointless here, it's equivalent to just writing a = np.recarray((2,), "i4, i4")
or a = np.recarray((2,), [("", "i4"), ("", "i4")])
... doesn't really matter much though.
Sure, it looks fine (modulo the nitpick mentioned above, which you can fix if you feel like it, or not...). |
I personally like the test, as it tests the reported issue directly. It shouldn't cause any problems. So I am merging this. |
BUG: Add a test for Ticket #2189
This fixes: http://projects.scipy.org/numpy/ticket/2189
(after this PR is merged, the ticket can be closed)