8000 Remove now-incorrect numpy assertion by tybug · Pull Request #4103 · HypothesisWorks/hypothesis · GitHub
[go: up one dir, main page]

Skip to content

Remove now-incorrect numpy assertion #4103

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 1 commit into from
Sep 13, 2024

Conversation

tybug
Copy link
Member
@tybug tybug commented Sep 12, 2024

Failed on numpy nightlies: closes #4102.

This is in src/, so actual users will start hitting this once the numpy nightly becomes not nightly.

(possibly this was the root cause of the other #4102 errors, we'll see what ci says.)

Copy link
Member
@Zac-HD Zac-HD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merge when ready 🫡

Comment on lines 1306 to 1308
# Two args: ndarray[shape, type], NDArray[*]
assert len(args) == 2
assert args[0] is Any
dtype = _unpack_dtype(args[1])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just checking, we still expect the dtype type to be the second element here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup, though I had to go find the pr numpy-side to convince myself of this: numpy/numpy#27211

@tybug tybug enabled auto-merge September 13, 2024 03:31
@tybug tybug merged commit 7d7724c into HypothesisWorks:master Sep 13, 2024
58 checks passed
@tybug tybug deleted the fix-numpy-nightly branch September 13, 2024 04:56
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.

Test failures with numpy nightly
2 participants
0