Skip to content
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

python_api: handle array-like args in approx() #8137

Merged

Conversation

jvansanten
Copy link
Contributor

@jvansanten jvansanten commented Dec 13, 2020

This treats objects that expose an ndarray via the __array__ interface the
same as direct subclasses of ndarray. Fixes #8132.

This treats objects that expose an ndarray via the __array__ interface the
same as direct subclasses of ndarray. Fixes pytest-dev#8132.
Copy link
Member

@nicoddemus nicoddemus left a comment

Choose a reason for hiding this comment

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

Great work, thanks!

@nicoddemus nicoddemus added the needs backport applied to PRs, indicates that it should be ported to the current bug-fix branch label Dec 13, 2020
@matthewfeickert
Copy link

Thanks very much @jvansanten! I appreciate you being so responsive and helpful on getting this change to address my Issue.

@nicoddemus nicoddemus merged commit 9ccbf5b into pytest-dev:master Dec 15, 2020
nicoddemus pushed a commit to nicoddemus/pytest that referenced this pull request Dec 15, 2020
@nicoddemus
Copy link
Member

Backport: #8147

nicoddemus added a commit that referenced this pull request Dec 15, 2020
[6.2.x] python_api: handle array-like args in approx() #8137
@nicoddemus nicoddemus added backported PR has been backported to the current bug-fix branch and removed needs backport applied to PRs, indicates that it should be ported to the current bug-fix branch labels Dec 15, 2020
@nicoddemus nicoddemus mentioned this pull request Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported PR has been backported to the current bug-fix branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pytest v6.2.0 pytest.approx failing tests when pytest v6.1.2 passes
3 participants