diff --git a/src/sisl/viz/processors/tests/test_geometry.py b/src/sisl/viz/processors/tests/test_geometry.py index b9e590fc78..66116c344d 100644 --- a/src/sisl/viz/processors/tests/test_geometry.py +++ b/src/sisl/viz/processors/tests/test_geometry.py @@ -266,7 +266,6 @@ def some_property(geometry, bonds): ), f"Wrong value for {k}" -@pytest.mark.xfail(reason="unknown failure on minimal version dependencies") def test_add_xyz_to_bonds_dataset(geometry): bonds = find_all_bonds(geometry, 1.5) @@ -275,7 +274,7 @@ def test_add_xyz_to_bonds_dataset(geometry): assert isinstance(xyz_bonds, xr.Dataset) assert "xyz" in xyz_bonds.data_vars assert xyz_bonds.xyz.shape == (len(bonds.bonds), 2, 3) - assert np.allclose(xyz_bonds.xyz[:, 0], geometry.xyz[bonds.bonds[:, 0]]) + assert np.allclose(xyz_bonds.xyz[:, 0], geometry.xyz[np.ravel(bonds.bonds[:, 0])]) def test_sanitize_bonds_selection(geometry):