Skip to content

gh-149059: Increase test coverage for fabs() function in math.py#149060

Closed
manoj-km24 wants to merge 6 commits into
python:mainfrom
manoj-km24:add-math-fabs-test
Closed

gh-149059: Increase test coverage for fabs() function in math.py#149060
manoj-km24 wants to merge 6 commits into
python:mainfrom
manoj-km24:add-math-fabs-test

Conversation

@manoj-km24
Copy link
Copy Markdown
Contributor

@manoj-km24 manoj-km24 commented Apr 27, 2026

This PR increases test coverage for fabs() function for infinity by adding:

self.assertEqual(math.fabs(INF),INF)
self.assertEqual(math.fabs(NINF),INF)

in testFabs() method under MathTests class in Lib/test/test_math.py


📚 Documentation preview 📚: https://cpython-previews--149060.org.readthedocs.build/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant