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
(cherry picked from commit aa78287)

Co-authored-by: Karolina Surma <33810531+befeleme@users.noreply.github.com>
  • Loading branch information
miss-islington and befeleme committed Jan 27, 2022
1 parent 1440dd3 commit 8e98ccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_turtle.py
Expand Up @@ -232,7 +232,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 8e98ccc

Please sign in to comment.