Skip to content

Commit

Permalink
bpo-44734: Fix floating point precision in test_turtle (GH-30910)
Browse files Browse the repository at this point in the history
  • Loading branch information
befeleme committed Jan 27, 2022
1 parent 3d2ce34 commit aa78287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_turtle.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def test_vector_negative(self):
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)

Expand Down

0 comments on commit aa78287

Please sign in to comment.