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

Suggest numpy testing module on pytest approx docs #8615

Merged
merged 4 commits into from
May 5, 2021
Merged

Suggest numpy testing module on pytest approx docs #8615

merged 4 commits into from
May 5, 2021

Conversation

tarcisiofischer
Copy link
Contributor

closes #8337

I was in doubt if this change needs a changelog, and, if it needs, if I should add trivial or docs (because it is both, IMO)

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.

Thanks @tarcisiofischer!

Small suggestion on the changelog, other than that LGTM!

changelog/8337.trivial.rst Outdated Show resolved Hide resolved
@tarcisiofischer
Copy link
Contributor Author

Is there any way I can see the generated docs before merging? I didn't check the produced HTML file 🤔

@nicoddemus
Copy link
Member

Is there any way I can see the generated docs before merging? I didn't check the produced HTML file 🤔

There's a readthedocs build that you can see the generated HTML:

https://pytest--8615.org.readthedocs.build/en/8615/

image

@tarcisiofischer
Copy link
Contributor Author

LGTM. Ready to merge.

@nicoddemus
Copy link
Member

FYI I've fixed the changelog and moved the suggestion to a "Note" box at the end of the text, which I believe it is better. 👍

@nicoddemus nicoddemus requested a review from Zac-HD May 4, 2021 10:57
@nicoddemus
Copy link
Member

Note: we should squash this IMHO.

src/_pytest/python_api.py Outdated Show resolved Hide resolved
Co-authored-by: Zac Hatfield-Dodds <[email protected]>
@nicoddemus nicoddemus requested a review from Zac-HD May 4, 2021 23:54
@nicoddemus nicoddemus merged commit b7416f7 into pytest-dev:main May 5, 2021
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.

Recommend np.testing module instead of pytest.approx with Numpy arrays
3 participants