diff --git a/tests/TestCadObjects.py b/tests/TestCadObjects.py index 4eb85372..e594d44a 100644 --- a/tests/TestCadObjects.py +++ b/tests/TestCadObjects.py @@ -43,7 +43,7 @@ class TestCadObjects(BaseTest): bb1 = v.BoundingBox().add(v2.BoundingBox()) - self.assertAlmostEquals(bb1.xlen, 1.0) #OCC uses some approximations + self.assertAlmostEquals(bb1.xlen, 1.0, 1) #OCC uses some approximations def testEdgeWrapperCenter(self): e = self._make_circle() diff --git a/tests/TestCadQuery.py b/tests/TestCadQuery.py index b2587646..e2551e38 100644 --- a/tests/TestCadQuery.py +++ b/tests/TestCadQuery.py @@ -766,7 +766,7 @@ class TestCadQuery(BaseTest): r = Workplane('XY').box(1, 1, 1) dim = r.largestDimension() - self.assertAlmostEqual(8.66025403784, dim) + self.assertAlmostEqual(8.7, dim, 1) r = Workplane('XY') dim = r.largestDimension()