Fixed unit test for python3.

This commit is contained in:
Markus Lampert
2017-08-23 14:16:55 -07:00
parent 504e4b7109
commit c399accb29

View File

@@ -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)