Skip to content

Commit

Permalink
Merge pull request #525 from Enet4/chore/unexpected-cfgs
Browse files Browse the repository at this point in the history
[pixeldata] Fix conditional compilation in tests with RLE encoded images
  • Loading branch information
Enet4 authored Jun 26, 2024
2 parents 536168b + 658b085 commit 6dc8782
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pixeldata/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2482,13 +2482,15 @@ mod tests {
mod not_gdcm {
#[cfg(feature = "ndarray")]
use crate::PixelDecoder;
#[cfg(any(feature = "transfer-syntax-registry/rle", feature = "image"))]
#[cfg(any(feature = "rle", feature = "image"))]
#[cfg(feature = "image")]
use rstest::rstest;

#[cfg(feature = "transfer-syntax-registry/rle")]
#[cfg(feature = "rle")]
#[test]
fn test_native_decoding_pixel_data_rle_8bit_1frame_vec() {
use crate::{ConvertOptions, ModalityLutOption, PixelDecoder as _};

let path = dicom_test_files::path("pydicom/SC_rgb_rle.dcm")
.expect("test DICOM file should exist");
let object = dicom_object::open_file(&path).unwrap();
Expand Down

0 comments on commit 6dc8782

Please sign in to comment.