Skip to content

Commit

Permalink
Fix test for case in which open3d is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderFabisch committed Jan 5, 2025
1 parent c87dd55 commit a47708b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytransform3d/test/test_mesh_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ def test_interface():
def test_ply_with_color():
try:
mesh = _mesh_loader.load_mesh("test/test_data/frame.ply")
vertex_colors = np.asarray(mesh.get_open3d_mesh().vertex_colors)
except ImportError as e:
if e.name in ["open3d", "trimesh"]:
pytest.skip("trimesh and open3d are required for this test")
else:
raise e
vertex_colors = np.asarray(mesh.get_open3d_mesh().vertex_colors)
assert len(vertex_colors) == 1134


Expand Down

0 comments on commit a47708b

Please sign in to comment.