Skip to content

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

Merged
merged 2 commits into from
Sep 2, 2012
Merged

BUG: Add a test for Ticket #2189 #397

merged 2 commits into from
Sep 2, 2012

Conversation

certik
Copy link
Contributor

@certik certik commented Aug 31, 2012

This fixes: http://projects.scipy.org/numpy/ticket/2189

(after this PR is merged, the ticket can be closed)

@travisbot
Copy link

This pull request passes (merged 137f25fd into 5c944b9).

@certik
Copy link
Contributor Author

certik commented Aug 31, 2012

@njsmith, if you have a minute, can you please review this PR?

@travisbot
Copy link

This pull request passes (merged cb5a27e into e60c70d).

@travisbot
Copy link

This pull request passes (merged 0713354 into e60c70d).

assert_raises(TypeError, np.searchsorted, a, 1.2)
# Ticket #2066, similar problem:
dtype = np.format_parser(['i4', 'i4'], [], [])
a = np.recarray((2, ), dtype)
Copy link
Member

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.

@njsmith
Copy link
Member

njsmith commented Sep 1, 2012

Sure, it looks fine (modulo the nitpick mentioned above, which you can fix if you feel like it, or not...).

@certik
Copy link
Contributor Author

certik commented Sep 2, 2012

I personally like the test, as it tests the reported issue directly. It shouldn't cause any problems. So I am merging this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants