Skip to content

gh-149059: Increase test coverage for fabs() function#149061

Open
manoj-km24 wants to merge 1 commit intopython:mainfrom
manoj-km24:add-fabs-test-math
Open

gh-149059: Increase test coverage for fabs() function#149061
manoj-km24 wants to merge 1 commit intopython:mainfrom
manoj-km24:add-fabs-test-math

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

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

Labels

awaiting review skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants