Skip to content

Commit

Permalink
Add import skips in labelmap tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CPBridge committed Sep 30, 2024
1 parent acd1d8b commit 5256f8e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_seg.py
Original file line number Diff line number Diff line change
Expand Up @@ -2367,6 +2367,8 @@ def test_pixel_types_labelmap(
pix_type,
test_data,
):
if fractional_transfer_syntax_uid == JPEG2000Lossless:
pytest.importorskip("openjpeg")
if fractional_transfer_syntax_uid == JPEGLSLossless:
pytest.importorskip("libjpeg")
sources, mask = self._tests[test_data]
Expand Down

0 comments on commit 5256f8e

Please sign in to comment.