Fix 2.6 compatibility

This commit is contained in:
Stefan van der Walt
2016-03-07 00:37:26 -08:00
parent 89136157bb
commit 78c0abeb17
+2 -2
View File
@@ -35,8 +35,8 @@ class TestMorphology():
for n in range(1, 4):
for strel in selems_2D:
for func in funcs:
output['{}_{}_{}'.format(strel.__name__, n, func.__name__)]\
= func(image, strel(n))
key = '{0}_{1}_{2}'.format(strel.__name__, n, func.__name__)
output[key] = func(image, strel(n))
return output