mirror of
https://github.com/python/cpython.git
synced 2024-11-24 10:24:35 +08:00
bpo-44734: Fix floating point precision in test_turtle (GH-30910)
This commit is contained in:
parent
3d2ce34716
commit
aa78287bc6
@ -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…
Reference in New Issue
Block a user