Skip to content

Commit 130ed55

Browse files
committed
Check for cholespy module before running tests
1 parent bbfa365 commit 130ed55

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/python/python/tests/test_largesteps.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
@fresolver_append_path
88
def test01_init(variants_all_ad_rgb):
9+
pytest.importorskip("cholespy")
10+
911
mesh = mi.load_dict({
1012
"type" : "ply",
1113
"filename" : "resources/data/tests/ply/triangle.ply",
@@ -19,6 +21,8 @@ def test01_init(variants_all_ad_rgb):
1921

2022
@fresolver_append_path
2123
def test02_roundtrip(variants_all_ad_rgb):
24+
pytest.importorskip("cholespy")
25+
2226
mesh = mi.load_dict({
2327
"type" : "ply",
2428
"filename" : "resources/data/tests/ply/triangle.ply",
@@ -34,8 +38,9 @@ def test02_roundtrip(variants_all_ad_rgb):
3438

3539

3640
def test03_non_unique_vertices(variants_all_ad_rgb):
37-
mesh = mi.Mesh("MyMesh", 5, 2)
41+
pytest.importorskip("cholespy")
3842

43+
mesh = mi.Mesh("MyMesh", 5, 2)
3944
params = mi.traverse(mesh)
4045
params['vertex_positions'] = [
4146
0.0, 0.0, 0.0,

0 commit comments

Comments
 (0)