Skip to content

Conversation

tanuj-rai
Copy link
Contributor

Closes #13662

This PR adds documentation references to pytest.approx as suggested in #13662.

Changes

  • Added a note about pytest.approx in getting-started.rst
  • Added a dedicated "Comparing floating point numbers" section in how-to/assert.rst

Here is a quick checklist that should be present in PRs.

  • Include documentation when adding new features.
  • Include new tests or update existing tests when applicable.
  • Allow maintainers to push and squash when merging my commits. Please uncheck this if you prefer to squash the commits yourself.

@tanuj-rai
Copy link
Contributor Author

Thanks, @nicoddemus! I’ve removed the .. note:: directive and replaced :ref:\approxwith:func:pytest.approx`` as suggested. Please let me know if anything else should be adjusted.

@tanuj-rai tanuj-rai requested a review from nicoddemus October 6, 2025 13:44
@nicoddemus nicoddemus added the skip news used on prs to opt out of the changelog requirement label Oct 6, 2025
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.

Looks great, thanks!

@nicoddemus nicoddemus merged commit b1e100d into pytest-dev:main Oct 6, 2025
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news used on prs to opt out of the changelog requirement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mention approx() in the "How to write [..] tests" guide
2 participants