From 2eb8fb62ed3ecc40789f9be42fb894f39e96c7df Mon Sep 17 00:00:00 2001 From: Sebastian Kuzminsky Date: Fri, 19 Jun 2020 19:47:04 -0600 Subject: [PATCH] test: show arguments that failed, to aid debugging (#83) --- test/test_path.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_path.py b/test/test_path.py index c8cec44..22648b0 100644 --- a/test/test_path.py +++ b/test/test_path.py @@ -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):