Skip to content

Commit

Permalink
Fix for new seg tests when libjpeg not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
CPBridge committed Nov 9, 2023
1 parent 393c186 commit b61aa58
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tests/test_seg.py
Original file line number Diff line number Diff line change
Expand Up @@ -1581,10 +1581,15 @@ def test_construction_autotile(

transfer_syntax_uids = [ExplicitVRLittleEndian]
if segmentation_type.value == 'FRACTIONAL':
transfer_syntax_uids += [
JPEG2000Lossless,
JPEGLSLossless,
]
try:
import libjpeg # noqa: F401
except ModuleNotFoundError:
pass
else:
transfer_syntax_uids += [
JPEG2000Lossless,
JPEGLSLossless,
]

for omit_empty_frames, transfer_syntax_uid in itertools.product(
omit_empty_frames_values,
Expand Down

0 comments on commit b61aa58

Please sign in to comment.