Browse Source

debug test test_find_label_border_polygonal_chains failing on python3.8

https://api.travis-ci.org/v3/job/649622479/log.txt
Fabian Peter Hammerle 7 months ago
parent
commit
9bc5d2f414
1 changed files with 4 additions and 2 deletions
  1. 4 2
      tests/test_surface.py

+ 4 - 2
tests/test_surface.py

@@ -434,8 +434,10 @@ def test_find_label_border_polygonal_chains():
     surface.load_annotation_file(ANNOTATION_FILE_PATH)
     precentral_label, = filter(lambda l: l.name == 'precentral',
                                surface.annotation.labels.values())
-    border_chain, = surface.find_label_border_polygonal_chains(
-        precentral_label)
+    border_chains = list(surface.find_label_border_polygonal_chains(
+        precentral_label))
+    assert len(border_chains) == 1, border_chains
+    border_chain, = border_chains
     vertex_indices = list(border_chain.vertex_indices)
     assert len(vertex_indices) == 418
     min_index = vertex_indices.index(min(vertex_indices))