test: show arguments that failed, to aid debugging (#83)

pull/114/head
Sebastian Kuzminsky 2020-06-19 19:47:04 -06:00 committed by GitHub
parent 929202aa62
commit 2eb8fb62ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -645,7 +645,7 @@ class ArcTest(unittest.TestCase):
orig_t = random.random()
p = a.point(orig_t)
computed_t = a.point_to_t(p)
self.assertAlmostEqual(orig_t, computed_t)
self.assertAlmostEqual(orig_t, computed_t, msg="arc %s at t=%f is point %s, but got %f back" % (a, orig_t, p, computed_t))
class TestPath(unittest.TestCase):