Draft: fix trailing whitespace

This commit is contained in:
luzpaz
2023-01-22 14:08:28 +00:00
committed by Uwe
parent 811fbe6e34
commit a4239ccfcf
21 changed files with 64 additions and 64 deletions

View File

@@ -94,7 +94,7 @@ class TestDraftGeomUtils(unittest.TestCase):
edge.Orientation = "Reversed"
edges.append(edge)
wire6 = Part.Wire(edges)
edges = []
for start, mid, end in zip(points[:-2], points[1:-1], points[2:]):
edge = Part.Arc(start, mid, end).toShape()
@@ -122,7 +122,7 @@ class TestDraftGeomUtils(unittest.TestCase):
num_subtests += 1 # TODO: it should be "with self.subtest(subtest):" but then it doesn't report failures.
extended = DraftGeomUtils.get_extended_wire(wire, offset_start, offset_end)
# Test that the extended wire's length is correctly changed
self.assertAlmostEqual(extended.Length, wire.Length + offset_start + offset_end,
self.assertAlmostEqual(extended.Length, wire.Length + offset_start + offset_end,
DraftGeomUtils.precision(), "'{0}.{1}' failed".format(operation, subtest))
if offset_start == 0.0:
# If offset_start is 0.0, check that the wire's start point is unchanged