mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-04 13:14:23 +08:00
update test for py3
This commit is contained in:
@@ -14,7 +14,12 @@ def _max_edge(g, src, dst, neighbor):
|
||||
except KeyError:
|
||||
w2 = None
|
||||
|
||||
return max(w1, w2)
|
||||
if w1 == None:
|
||||
return w2
|
||||
elif w2 == None:
|
||||
return w1
|
||||
else:
|
||||
return max(w1, w2)
|
||||
|
||||
|
||||
def test_rag_merge():
|
||||
|
||||
Reference in New Issue
Block a user