mirror of
https://github.com/python/cpython.git
synced 2025-10-06 15:11:58 +00:00
bpo-44734: Fix floating point precision in test_turtle (GH-30910)
This commit is contained in:
parent
3d2ce34716
commit
aa78287bc6
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ class TestVec2D(VectorComparisonMixin, unittest.TestCase):
|
|||
self.assertVectorsAlmostEqual(-vec, expected)
|
||||
|
||||
def test_distance(self):
|
||||
self.assertEqual(abs(Vec2D(6, 8)), 10)
|
||||
self.assertAlmostEqual(abs(Vec2D(6, 8)), 10)
|
||||
self.assertEqual(abs(Vec2D(0, 0)), 0)
|
||||
self.assertAlmostEqual(abs(Vec2D(2.5, 6)), 6.5)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue