Skip to content

Commit 0ac73ee

Browse files
committed
skip test_issue289 if torch not available
1 parent abf2b1e commit 0ac73ee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_resource_tests/test_test_model.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import pathlib
22

3+
import pytest
4+
35

46
def test_error_for_wrong_shape(stardist_wrong_shape):
57
from bioimageio.core.resource_tests import test_model
@@ -58,6 +60,7 @@ def test_validation_section_warning(unet2d_nuclei_broad_model, tmp_path: pathlib
5860
assert summary["status"] == "passed"
5961

6062

63+
@pytest.mark.skipif(pytest.skip_torch, reason="requires torch")
6164
def test_issue289():
6265
"""test for failure case from https://github.com/bioimage-io/core-bioimage-io-python/issues/289"""
6366
import bioimageio.core

0 commit comments

Comments
 (0)