From 1494addfcbd1111c50fc34b26fae859fe1ede6e0 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 1 Jan 2018 17:48:05 +0100 Subject: [PATCH] fix assertPlacement for unit tests do not explicitly check for angles as they can be quite different for even identical quaternions --- src/Mod/Path/PathTests/PathTestUtils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Path/PathTests/PathTestUtils.py b/src/Mod/Path/PathTests/PathTestUtils.py index c8b2faf6c7..e5808cb2a7 100644 --- a/src/Mod/Path/PathTests/PathTestUtils.py +++ b/src/Mod/Path/PathTests/PathTestUtils.py @@ -47,7 +47,7 @@ class PathTestBase(unittest.TestCase): """Verify that two placements are roughly identical.""" self.assertCoincide(p1.Base, p2.Base) self.assertCoincide(p1.Rotation.Axis, p2.Rotation.Axis) - self.assertRoughly(p1.Rotation.Angle, p2.Rotation.Angle) + self.assertTrue(p1.Rotation.isSame(p2.Rotation)) def assertLine(self, edge, pt1, pt2): """Verify that edge is a line from pt1 to pt2."""