try to fix CI issues with a test
@@ -130,9 +130,9 @@ def test_disconnected_data(num_isolates, metric, force_approximation):
warning_contains = "A few of your vertices"
elif num_isolates > 1:
warning_contains = "A large number of your vertices"
- for i in range(len(w)):
- flag += warning_contains in str(w[i].message)
- assert flag == 1
+ for wn in w:
+ flag += warning_contains in str(wn.message)
+ assert flag == 1, str([wn.message for wn in w])
# Check that the first isolate has no edges in our umap.graph_
isolated_vertices = disconnected_vertices(model)
assert isolated_vertices[10] == True
