More py3 compatibility, same root cause though.

This commit is contained in:
Markus Lampert
2017-08-23 20:08:58 -07:00
parent 0fff9d416d
commit 04390300cd

View File

@@ -128,8 +128,8 @@ class TestDressupDogbone(PathTestBase):
dog = dogbone.Proxy
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)
def formatBoneLoc(pt):
return "(%.2f, %.2f)" % (pt[0], pt[1])
# Make sure we get 8 bones, 2 in each corner (different heights)
self.assertEquals(len(locs), 8)