From c399accb290dd87018d389ba449c5bdf1aafaa98 Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Wed, 23 Aug 2017 14:16:55 -0700 Subject: [PATCH] Fixed unit test for python3. --- src/Mod/Path/PathTests/TestPathDressupDogbone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Path/PathTests/TestPathDressupDogbone.py b/src/Mod/Path/PathTests/TestPathDressupDogbone.py index 091ee6fc40..4ebe1d27e3 100644 --- a/src/Mod/Path/PathTests/TestPathDressupDogbone.py +++ b/src/Mod/Path/PathTests/TestPathDressupDogbone.py @@ -126,7 +126,7 @@ class TestDressupDogbone(PathTestBase): doc.recompute() dog = dogbone.Proxy - locs = sorted([bone[1] for bone in dog.bones], key=lambda (x,y): x * 1000 + y) + locs = sorted([bone[1] for bone in dog.bones], key=lambda xy: xy[0] * 1000 + xy[1]) def formatBoneLoc((x, y)): return "(%.2f, %.2f)" % (x, y)