test: show arguments that failed, to aid debugging (#83)
parent
929202aa62
commit
2eb8fb62ed
|
@ -645,7 +645,7 @@ class ArcTest(unittest.TestCase):
|
||||||
orig_t = random.random()
|
orig_t = random.random()
|
||||||
p = a.point(orig_t)
|
p = a.point(orig_t)
|
||||||
computed_t = a.point_to_t(p)
|
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):
|
class TestPath(unittest.TestCase):
|
||||||
|
|
Loading…
Reference in New Issue