-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
Closed
Labels
testsTests in the Lib/test dirTests in the Lib/test dir
Description
https://github.com/python/cpython/blob/main/Lib/test/test_math.py#L794-L871
We (SUSE) have test self.assertEqual(hypot(1, -1), math.sqrt(2))
failing on some distros and some architectures (namely i586
) and I suspect that whole idea of assertEqual
on two floating point numbers is very unfortunate. Shouldn't be there at least assertAlmostEqual
?
Cc: @mdickinson, @rhettinger, @danigm
Linked PRs
- gh-124040: adjust few tests in testHypot/testDist to get exactly computed results #124042
- [3.13] gh-124040: Adjust few tests in testHypot/testDist to get exactly computed results (GH-124042) #124235
- [3.12] gh-124040: Adjust few tests in testHypot/testDist to get exactly computed results (GH-124042) #124236
Metadata
Metadata
Assignees
Labels
testsTests in the Lib/test dirTests in the Lib/test dir