Update to use pytest warning recorder
@@ -117,7 +117,7 @@ def test_disconnected_data(num_isolates, metric, force_approximation):
new_columns[10 + i, i] = True
disconnected_data = np.hstack([disconnected_data, new_columns])
- with warnings.catch_warnings(record=True) as w:
+ with pytest.warns(None) as w:
model = UMAP(
n_neighbors=3,
metric=metric,
