[med-svn] [Git][med-team/pydicom][master] Drop lots of test requiring data files in need to be downloaded

Andreas Tille (@tille) gitlab at salsa.debian.org
Wed Dec 8 12:28:14 GMT 2021



Andreas Tille pushed to branch master at Debian Med / pydicom


Commits:
749252c6 by Andreas Tille at 2021-12-08T13:27:56+01:00
Drop lots of test requiring data files in need to be downloaded

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/ignore_tests_downloading_data.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -7,6 +7,7 @@ pydicom (2.2.2-1) UNRELEASED; urgency=medium
   * Standards-Version: 4.6.0 (routine-update)
   * autopkgtest-pkg-python.conf: extra_restrictions=needs-internet
   * Build-Depends: python3-gdcm
+  * Drop lots of test requiring data files in need to be downloaded
 
   [ Steffen Moeller ]
   * Fixed d/watch (github path update)


=====================================
debian/patches/ignore_tests_downloading_data.patch
=====================================
@@ -0,0 +1,1833 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Wed, 08 Dec 2021 08:55:10 +0100
+Description: Several data files need to be downloaded which is not possible at package build time
+             Thus the downloading and the according tests are removed here
+
+--- a/pydicom/tests/test_data_manager.py
++++ b/pydicom/tests/test_data_manager.py
+@@ -25,7 +25,7 @@ EXT_PYDICOM = False
+ if 'pydicom-data' in external_data_sources():
+     EXT_PYDICOM = True
+ 
+-
++ at pytest.mark.skip("When building a Debian package we can not download anything")
+ @pytest.fixture
+ def download_failure():
+     """Simulate a download failure."""
+@@ -33,7 +33,7 @@ def download_failure():
+     yield
+     download._SIMULATE_NETWORK_OUTAGE = False
+ 
+-
++ at pytest.mark.skip("When building a Debian package we can not download anything")
+ class TestGetData:
+     def test_get_dataset(self):
+         """Test the different functions to get lists of data files."""
+@@ -113,6 +113,7 @@ class TestGetData:
+             assert palbase in x
+ 
+ 
++ at pytest.mark.skip("When building a Debian package we can not download anything")
+ @pytest.mark.skipif(not EXT_PYDICOM, reason="pydicom-data not installed")
+ class TestExternalDataSource:
+     """Tests for the external data sources."""
+@@ -252,6 +253,7 @@ class TestExternalDataSource:
+         assert ".pydicom/data" in fpaths[1]
+ 
+ 
++ at pytest.mark.skip("When building a Debian package we can not download anything")
+ @pytest.mark.skipif(EXT_PYDICOM, reason="pydicom-data installed")
+ class TestDownload:
+     """Tests for the download module."""
+@@ -275,6 +277,7 @@ class TestDownload:
+             assert [] == get_testdata_files("693_UN*")
+ 
+ 
++ at pytest.mark.skip("When building a Debian package we can not download anything")
+ def test_fetch_data_files():
+     """Test fetch_data_files()."""
+     # Remove a single file from the cache
+@@ -288,6 +291,7 @@ def test_fetch_data_files():
+     assert path.exists()
+ 
+ 
++ at pytest.mark.skip("When building a Debian package we can not download anything")
+ def test_fetch_data_files_download_failure(download_failure):
+     """Test fetch_data_files() with download failures."""
+     msg = r"An error occurred downloading the following files:"
+@@ -295,6 +299,7 @@ def test_fetch_data_files_download_failu
+         fetch_data_files()
+ 
+ 
++ at pytest.mark.skip("When building a Debian package we can not download anything")
+ def test_hashes():
+     """Test for duplicates in hashes.json."""
+     # We can't have case mixes because windows filenames are case insensitive
+@@ -305,6 +310,7 @@ def test_hashes():
+         assert len(set(filenames)) == len(filenames)
+ 
+ 
++ at pytest.mark.skip("When building a Debian package we can not download anything")
+ def test_urls():
+     """Test for duplicates in urls.json."""
+     # We can't have case mixes because windows filenames are case insensitive
+--- a/pydicom/tests/test_pillow_pixel_data.py
++++ b/pydicom/tests/test_pillow_pixel_data.py
+@@ -54,52 +54,52 @@ TEST_JPEG2K = TEST_PIL and HAVE_JPEG2K
+ # FRAMES: NumberOfFrames
+ # PI: PhotometricInterpretation
+ # FMT_BA_BV_SPX_PR_FRAMESF_PI
+-# JPGB: 1.2.840.10008.1.2.4.50 - JPEG Baseline (8-bit only)
+-JPGB_08_08_3_0_1F_YBR_FULL = get_testdata_file("SC_rgb_small_odd_jpeg.dcm")
+-JPGB_08_08_3_0_120F_YBR_FULL_422 = get_testdata_file("color3d_jpeg_baseline.dcm")  # noqa
+-# Different subsampling 411, 422, 444
+-JPGB_08_08_3_0_1F_YBR_FULL_422_411 = get_testdata_file("SC_rgb_dcmtk_+eb+cy+np.dcm")  # noqa
+-JPGB_08_08_3_0_1F_YBR_FULL_422_422 = get_testdata_file("SC_rgb_dcmtk_+eb+cy+s2.dcm")  # noqa
+-JPGB_08_08_3_0_1F_YBR_FULL_411 = get_testdata_file("SC_rgb_dcmtk_+eb+cy+n1.dcm")  # noqa
+-JPGB_08_08_3_0_1F_YBR_FULL_422 = get_testdata_file("SC_rgb_dcmtk_+eb+cy+n2.dcm")  # noqa
+-JPGB_08_08_3_0_1F_YBR_FULL_444 = get_testdata_file("SC_rgb_dcmtk_+eb+cy+s4.dcm")  # noqa
+-JPGB_08_08_3_0_1F_RGB = get_testdata_file("SC_jpeg_no_color_transform.dcm")
+-JPGB_08_08_3_0_1F_RGB_APP14 = get_testdata_file("SC_jpeg_no_color_transform_2.dcm")  # noqa
+-# JPGE: 1.2.840.10008.1.2.4.51 - JPEG Extended (Process 2 and 4) (8 and 12-bit)
+-# No supported datasets available
+-
+-# JPEG 2000 - ISO/IEC 15444 Standard
+-# J2KR: 1.2.840.100008.1.2.4.90 - JPEG 2000 Lossless
+-J2KR_08_08_3_0_1F_YBR_ICT = get_testdata_file("US1_J2KR.dcm")
+-J2KR_16_10_1_0_1F_M1 = get_testdata_file("RG3_J2KR.dcm")
+-J2KR_16_12_1_0_1F_M2 = get_testdata_file("MR2_J2KR.dcm")
+-J2KR_16_15_1_0_1F_M1 = get_testdata_file("RG1_J2KR.dcm")
+-J2KR_16_16_1_0_10F_M2 = get_testdata_file("emri_small_jpeg_2k_lossless.dcm")
+-J2KR_16_14_1_1_1F_M2 = get_testdata_file("693_J2KR.dcm")
+-J2KR_16_16_1_1_1F_M2 = get_testdata_file("MR_small_jp2klossless.dcm")
+-J2KR_16_13_1_1_1F_M2_MISMATCH = get_testdata_file("J2K_pixelrep_mismatch.dcm")
+-# J2KI: 1.2.840.10008.1.2.4.91 - JPEG 2000
+-J2KI_08_08_3_0_1F_RGB = get_testdata_file("SC_rgb_gdcm_KY.dcm")
+-J2KI_08_08_3_0_1F_YBR_ICT = get_testdata_file("US1_J2KI.dcm")
+-J2KI_16_10_1_0_1F_M1 = get_testdata_file("RG3_J2KI.dcm")
+-J2KI_16_12_1_0_1F_M2 = get_testdata_file("MR2_J2KI.dcm")
+-J2KI_16_15_1_0_1F_M1 = get_testdata_file("RG1_J2KI.dcm")
+-J2KI_16_14_1_1_1F_M2 = get_testdata_file("693_J2KI.dcm")
+-J2KI_16_16_1_1_1F_M2 = get_testdata_file("JPEG2000.dcm")
+-
+-# Transfer syntaxes supported by other handlers
+-IMPL = get_testdata_file("MR_small_implicit.dcm")
+-EXPL = get_testdata_file("OBXXXX1A.dcm")
+-EXPB = get_testdata_file("OBXXXX1A_expb.dcm")
+-DEFL = get_testdata_file("image_dfl.dcm")
+-JPEG_LS_LOSSLESS = get_testdata_file("MR_small_jpeg_ls_lossless.dcm")
+-RLE = get_testdata_file("MR_small_RLE.dcm")
+-JPGE_16_12_1_0_1F_M2 = get_testdata_file("JPEG-lossy.dcm")
+-JPGL_16_16_1_1_1F_M2 = get_testdata_file("JPEG-LL.dcm")
+-# JPGL14: 1.2.840.10008.1.2.4.57 - JPEG Lossless P14
+-# No datasets available
+-# JPGL: 1.2.840.10008.1.2.4.70 - JPEG Lossless, Non-hierarchical, 1st Order
+-JPGL_08_08_1_0_1F = get_testdata_file("JPGLosslessP14SV1_1s_1f_8b.dcm")
++## JPGB: 1.2.840.10008.1.2.4.50 - JPEG Baseline (8-bit only)
++#JPGB_08_08_3_0_1F_YBR_FULL = get_testdata_file("SC_rgb_small_odd_jpeg.dcm")
++#JPGB_08_08_3_0_120F_YBR_FULL_422 = get_testdata_file("color3d_jpeg_baseline.dcm")  # noqa
++## Different subsampling 411, 422, 444
++#JPGB_08_08_3_0_1F_YBR_FULL_422_411 = get_testdata_file("SC_rgb_dcmtk_+eb+cy+np.dcm")  # noqa
++#JPGB_08_08_3_0_1F_YBR_FULL_422_422 = get_testdata_file("SC_rgb_dcmtk_+eb+cy+s2.dcm")  # noqa
++#JPGB_08_08_3_0_1F_YBR_FULL_411 = get_testdata_file("SC_rgb_dcmtk_+eb+cy+n1.dcm")  # noqa
++#JPGB_08_08_3_0_1F_YBR_FULL_422 = get_testdata_file("SC_rgb_dcmtk_+eb+cy+n2.dcm")  # noqa
++#JPGB_08_08_3_0_1F_YBR_FULL_444 = get_testdata_file("SC_rgb_dcmtk_+eb+cy+s4.dcm")  # noqa
++#JPGB_08_08_3_0_1F_RGB = get_testdata_file("SC_jpeg_no_color_transform.dcm")
++#JPGB_08_08_3_0_1F_RGB_APP14 = get_testdata_file("SC_jpeg_no_color_transform_2.dcm")  # noqa
++## JPGE: 1.2.840.10008.1.2.4.51 - JPEG Extended (Process 2 and 4) (8 and 12-bit)
++## No supported datasets available
++#
++## JPEG 2000 - ISO/IEC 15444 Standard
++## J2KR: 1.2.840.100008.1.2.4.90 - JPEG 2000 Lossless
++#J2KR_08_08_3_0_1F_YBR_ICT = get_testdata_file("US1_J2KR.dcm")
++#J2KR_16_10_1_0_1F_M1 = get_testdata_file("RG3_J2KR.dcm")
++#J2KR_16_12_1_0_1F_M2 = get_testdata_file("MR2_J2KR.dcm")
++#J2KR_16_15_1_0_1F_M1 = get_testdata_file("RG1_J2KR.dcm")
++#J2KR_16_16_1_0_10F_M2 = get_testdata_file("emri_small_jpeg_2k_lossless.dcm")
++#J2KR_16_14_1_1_1F_M2 = get_testdata_file("693_J2KR.dcm")
++#J2KR_16_16_1_1_1F_M2 = get_testdata_file("MR_small_jp2klossless.dcm")
++#J2KR_16_13_1_1_1F_M2_MISMATCH = get_testdata_file("J2K_pixelrep_mismatch.dcm")
++## J2KI: 1.2.840.10008.1.2.4.91 - JPEG 2000
++#J2KI_08_08_3_0_1F_RGB = get_testdata_file("SC_rgb_gdcm_KY.dcm")
++#J2KI_08_08_3_0_1F_YBR_ICT = get_testdata_file("US1_J2KI.dcm")
++#J2KI_16_10_1_0_1F_M1 = get_testdata_file("RG3_J2KI.dcm")
++#J2KI_16_12_1_0_1F_M2 = get_testdata_file("MR2_J2KI.dcm")
++#J2KI_16_15_1_0_1F_M1 = get_testdata_file("RG1_J2KI.dcm")
++#J2KI_16_14_1_1_1F_M2 = get_testdata_file("693_J2KI.dcm")
++#J2KI_16_16_1_1_1F_M2 = get_testdata_file("JPEG2000.dcm")
++#
++## Transfer syntaxes supported by other handlers
++#IMPL = get_testdata_file("MR_small_implicit.dcm")
++#EXPL = get_testdata_file("OBXXXX1A.dcm")
++#EXPB = get_testdata_file("OBXXXX1A_expb.dcm")
++#DEFL = get_testdata_file("image_dfl.dcm")
++#JPEG_LS_LOSSLESS = get_testdata_file("MR_small_jpeg_ls_lossless.dcm")
++#RLE = get_testdata_file("MR_small_RLE.dcm")
++#JPGE_16_12_1_0_1F_M2 = get_testdata_file("JPEG-lossy.dcm")
++#JPGL_16_16_1_1_1F_M2 = get_testdata_file("JPEG-LL.dcm")
++## JPGL14: 1.2.840.10008.1.2.4.57 - JPEG Lossless P14
++## No datasets available
++## JPGL: 1.2.840.10008.1.2.4.70 - JPEG Lossless, Non-hierarchical, 1st Order
++#JPGL_08_08_1_0_1F = get_testdata_file("JPGLosslessP14SV1_1s_1f_8b.dcm")
+ 
+ 
+ # Transfer Syntaxes (non-retired + Explicit VR Big Endian)
+@@ -124,13 +124,13 @@ def test_unsupported_syntaxes():
+ 
+ 
+ REFERENCE_DATA_UNSUPPORTED = [
+-    (IMPL, ('1.2.840.10008.1.2', 'CompressedSamples^MR1')),
+-    (EXPL, ('1.2.840.10008.1.2.1', 'OB^^^^')),
+-    (EXPB, ('1.2.840.10008.1.2.2', 'OB^^^^')),
+-    (DEFL, ('1.2.840.10008.1.2.1.99', '^^^^')),
+-    (JPEG_LS_LOSSLESS, ('1.2.840.10008.1.2.4.80', 'CompressedSamples^MR1')),
+-    (JPGL_08_08_1_0_1F, ('1.2.840.10008.1.2.4.70', 'Citizen^Jan')),
+-    (RLE, ('1.2.840.10008.1.2.5', 'CompressedSamples^MR1')),
++#    (IMPL, ('1.2.840.10008.1.2', 'CompressedSamples^MR1')),
++#    (EXPL, ('1.2.840.10008.1.2.1', 'OB^^^^')),
++#    (EXPB, ('1.2.840.10008.1.2.2', 'OB^^^^')),
++#    (DEFL, ('1.2.840.10008.1.2.1.99', '^^^^')),
++#    (JPEG_LS_LOSSLESS, ('1.2.840.10008.1.2.4.80', 'CompressedSamples^MR1')),
++#    (JPGL_08_08_1_0_1F, ('1.2.840.10008.1.2.4.70', 'Citizen^Jan')),
++#    (RLE, ('1.2.840.10008.1.2.5', 'CompressedSamples^MR1')),
+ ]
+ 
+ 
+@@ -210,171 +210,171 @@ JPGL = JPEGLosslessSV1
+ J2KI = JPEG2000
+ J2KR = JPEG2000Lossless
+ REFERENCE_DATA = [
+-    # fpath, (syntax, bits, nr samples, pixel repr, nr frames, shape, dtype)
+-    (JPGB_08_08_3_0_120F_YBR_FULL_422, (JPGB, 8, 3, 0, 120, (120, 480, 640, 3), 'uint8')),  # noqa
+-    (JPGB_08_08_3_0_1F_YBR_FULL_422_411, (JPGB, 8, 3, 0, 1, (100, 100, 3), 'uint8')),  # noqa
+-    (JPGB_08_08_3_0_1F_YBR_FULL_422_422, (JPGB, 8, 3, 0, 1, (100, 100, 3), 'uint8')),  # noqa
+-    (JPGB_08_08_3_0_1F_YBR_FULL_411, (JPGB, 8, 3, 0, 1, (100, 100, 3), 'uint8')),  # noqa
+-    (JPGB_08_08_3_0_1F_YBR_FULL_422, (JPGB, 8, 3, 0, 1, (100, 100, 3), 'uint8')),  # noqa
+-    (JPGB_08_08_3_0_1F_YBR_FULL_444, (JPGB, 8, 3, 0, 1, (100, 100, 3), 'uint8')),  # noqa
+-    (JPGB_08_08_3_0_1F_RGB, (JPGB, 8, 3, 0, 1, (256, 256, 3), 'uint8')),
+-    (JPGB_08_08_3_0_1F_RGB_APP14, (JPGB, 8, 3, 0, 1, (256, 256, 3), 'uint8')),
+-    (J2KR_08_08_3_0_1F_YBR_ICT, (J2KR, 8, 3, 0, 1, (480, 640, 3), 'uint8')),
+-    (J2KR_16_10_1_0_1F_M1, (J2KR, 16, 1, 0, 1, (1760, 1760), 'uint16')),
+-    (J2KR_16_12_1_0_1F_M2, (J2KR, 16, 1, 0, 1, (1024, 1024), 'uint16')),
+-    (J2KR_16_15_1_0_1F_M1, (J2KR, 16, 1, 0, 1, (1955, 1841), 'uint16')),
+-    (J2KR_16_16_1_0_10F_M2, (J2KR, 16, 1, 0, 10, (10, 64, 64), 'uint16')),
+-    (J2KR_16_14_1_1_1F_M2, (J2KR, 16, 1, 1, 1, (512, 512), 'int16')),
+-    (J2KR_16_16_1_1_1F_M2, (J2KR, 16, 1, 1, 1, (64, 64), 'int16')),
+-    (J2KI_08_08_3_0_1F_RGB, (J2KI, 8, 3, 0, 1, (100, 100, 3), 'uint8')),
+-    (J2KI_08_08_3_0_1F_YBR_ICT, (J2KI, 8, 3, 0, 1, (480, 640, 3), 'uint8')),
+-    (J2KI_16_10_1_0_1F_M1, (J2KI, 16, 1, 0, 1, (1760, 1760), 'uint16')),
+-    (J2KI_16_12_1_0_1F_M2, (J2KI, 16, 1, 0, 1, (1024, 1024), 'uint16')),
+-    (J2KI_16_15_1_0_1F_M1, (J2KI, 16, 1, 0, 1, (1955, 1841), 'uint16')),
+-    (J2KI_16_14_1_1_1F_M2, (J2KI, 16, 1, 1, 1, (512, 512), 'int16')),
+-    (J2KI_16_16_1_1_1F_M2, (J2KI, 16, 1, 1, 1, (1024, 256), 'int16')),
++#    # fpath, (syntax, bits, nr samples, pixel repr, nr frames, shape, dtype)
++#    (JPGB_08_08_3_0_120F_YBR_FULL_422, (JPGB, 8, 3, 0, 120, (120, 480, 640, 3), 'uint8')),  # noqa
++#    (JPGB_08_08_3_0_1F_YBR_FULL_422_411, (JPGB, 8, 3, 0, 1, (100, 100, 3), 'uint8')),  # noqa
++#    (JPGB_08_08_3_0_1F_YBR_FULL_422_422, (JPGB, 8, 3, 0, 1, (100, 100, 3), 'uint8')),  # noqa
++#    (JPGB_08_08_3_0_1F_YBR_FULL_411, (JPGB, 8, 3, 0, 1, (100, 100, 3), 'uint8')),  # noqa
++#    (JPGB_08_08_3_0_1F_YBR_FULL_422, (JPGB, 8, 3, 0, 1, (100, 100, 3), 'uint8')),  # noqa
++#    (JPGB_08_08_3_0_1F_YBR_FULL_444, (JPGB, 8, 3, 0, 1, (100, 100, 3), 'uint8')),  # noqa
++#    (JPGB_08_08_3_0_1F_RGB, (JPGB, 8, 3, 0, 1, (256, 256, 3), 'uint8')),
++#    (JPGB_08_08_3_0_1F_RGB_APP14, (JPGB, 8, 3, 0, 1, (256, 256, 3), 'uint8')),
++#    (J2KR_08_08_3_0_1F_YBR_ICT, (J2KR, 8, 3, 0, 1, (480, 640, 3), 'uint8')),
++#    (J2KR_16_10_1_0_1F_M1, (J2KR, 16, 1, 0, 1, (1760, 1760), 'uint16')),
++#    (J2KR_16_12_1_0_1F_M2, (J2KR, 16, 1, 0, 1, (1024, 1024), 'uint16')),
++#    (J2KR_16_15_1_0_1F_M1, (J2KR, 16, 1, 0, 1, (1955, 1841), 'uint16')),
++#    (J2KR_16_16_1_0_10F_M2, (J2KR, 16, 1, 0, 10, (10, 64, 64), 'uint16')),
++#    (J2KR_16_14_1_1_1F_M2, (J2KR, 16, 1, 1, 1, (512, 512), 'int16')),
++#    (J2KR_16_16_1_1_1F_M2, (J2KR, 16, 1, 1, 1, (64, 64), 'int16')),
++#    (J2KI_08_08_3_0_1F_RGB, (J2KI, 8, 3, 0, 1, (100, 100, 3), 'uint8')),
++#    (J2KI_08_08_3_0_1F_YBR_ICT, (J2KI, 8, 3, 0, 1, (480, 640, 3), 'uint8')),
++#    (J2KI_16_10_1_0_1F_M1, (J2KI, 16, 1, 0, 1, (1760, 1760), 'uint16')),
++#    (J2KI_16_12_1_0_1F_M2, (J2KI, 16, 1, 0, 1, (1024, 1024), 'uint16')),
++#    (J2KI_16_15_1_0_1F_M1, (J2KI, 16, 1, 0, 1, (1955, 1841), 'uint16')),
++#    (J2KI_16_14_1_1_1F_M2, (J2KI, 16, 1, 1, 1, (512, 512), 'int16')),
++#    (J2KI_16_16_1_1_1F_M2, (J2KI, 16, 1, 1, 1, (1024, 256), 'int16')),
+ ]
+-
++#
+ JPEG_MATCHING_DATASETS = [
+-    # (compressed, reference, hard coded check values)
+-    pytest.param(
+-        JPGB_08_08_3_0_1F_YBR_FULL_422_411,
+-        get_testdata_file("SC_rgb_dcmtk_ebcynp_dcmd.dcm"),
+-        [
+-            (253, 1, 0), (253, 128, 132), (0, 255, 5), (127, 255, 127),
+-            (1, 0, 254), (127, 128, 255), (0, 0, 0), (64, 64, 64),
+-            (192, 192, 192), (255, 255, 255),
+-        ],
+-        marks=pytest.mark.xfail(reason="Resulting image is a bad match")
+-    ),
+-    pytest.param(
+-        JPGB_08_08_3_0_1F_YBR_FULL_422_422,
+-        get_testdata_file("SC_rgb_dcmtk_ebcys2_dcmd.dcm"),
+-        [
+-            (254, 0, 0), (255, 127, 127), (0, 255, 5), (129, 255, 129),
+-            (0, 0, 254), (128, 127, 255), (0, 0, 0), (64, 64, 64),
+-            (192, 192, 192), (255, 255, 255),
+-        ],
+-    ),
+-    pytest.param(
+-        JPGB_08_08_3_0_1F_YBR_FULL_411,
+-        get_testdata_file("SC_rgb_dcmtk_ebcyn1_dcmd.dcm"),
+-        [
+-            (253, 1, 0), (253, 128, 132), (0, 255, 5), (127, 255, 127),
+-            (1, 0, 254), (127, 128, 255), (0, 0, 0), (64, 64, 64),
+-            (192, 192, 192), (255, 255, 255),
+-        ],
+-        marks=pytest.mark.xfail(reason="Resulting image is a bad match")
+-    ),
+-    pytest.param(
+-        JPGB_08_08_3_0_1F_YBR_FULL_422,
+-        get_testdata_file("SC_rgb_dcmtk_ebcyn2_dcmd.dcm"),
+-        [
+-            (254, 0, 0), (255, 127, 127), (0, 255, 5), (129, 255, 129),
+-            (0, 0, 254), (128, 127, 255), (0, 0, 0), (64, 64, 64),
+-            (192, 192, 192), (255, 255, 255),
+-        ],
+-    ),
+-    pytest.param(
+-        JPGB_08_08_3_0_1F_YBR_FULL_444,
+-        get_testdata_file("SC_rgb_dcmtk_ebcys4_dcmd.dcm"),
+-        [
+-            (254, 0, 0), (255, 127, 127), (0, 255, 5), (129, 255, 129),
+-            (0, 0, 254), (128, 127, 255), (0, 0, 0), (64, 64, 64),
+-            (192, 192, 192), (255, 255, 255),
+-        ],
+-    ),
+-    pytest.param(
+-        JPGB_08_08_3_0_1F_RGB,
+-        get_testdata_file("SC_rgb_jpeg_dcmd.dcm"),
+-        [
+-            (244, 244, 244), (244, 244, 244), (244, 244, 244), (244, 244, 244),
+-            (236, 237, 234), (244, 244, 244), (244, 244, 244), (244, 244, 244),
+-            (244, 244, 244), (244, 244, 244),
+-        ],
+-    ),
+-    pytest.param(
+-        JPGB_08_08_3_0_1F_RGB_APP14,
+-        get_testdata_file("SC_rgb_jpeg_app14_dcmd.dcm"),
+-        [
+-            (246, 246, 246), (246, 246, 246), (246, 246, 246), (246, 246, 246),
+-            (246, 246, 246), (244, 244, 246), (246, 246, 246), (246, 246, 246),
+-            (246, 246, 246), (246, 246, 246),
+-        ],
+-    ),
++#    # (compressed, reference, hard coded check values)
++#    pytest.param(
++#        JPGB_08_08_3_0_1F_YBR_FULL_422_411,
++#        get_testdata_file("SC_rgb_dcmtk_ebcynp_dcmd.dcm"),
++#        [
++#            (253, 1, 0), (253, 128, 132), (0, 255, 5), (127, 255, 127),
++#            (1, 0, 254), (127, 128, 255), (0, 0, 0), (64, 64, 64),
++#            (192, 192, 192), (255, 255, 255),
++#        ],
++#        marks=pytest.mark.xfail(reason="Resulting image is a bad match")
++#    ),
++#    pytest.param(
++#        JPGB_08_08_3_0_1F_YBR_FULL_422_422,
++#        get_testdata_file("SC_rgb_dcmtk_ebcys2_dcmd.dcm"),
++#        [
++#            (254, 0, 0), (255, 127, 127), (0, 255, 5), (129, 255, 129),
++#            (0, 0, 254), (128, 127, 255), (0, 0, 0), (64, 64, 64),
++#            (192, 192, 192), (255, 255, 255),
++#        ],
++#    ),
++#    pytest.param(
++#        JPGB_08_08_3_0_1F_YBR_FULL_411,
++#        get_testdata_file("SC_rgb_dcmtk_ebcyn1_dcmd.dcm"),
++#        [
++#            (253, 1, 0), (253, 128, 132), (0, 255, 5), (127, 255, 127),
++#            (1, 0, 254), (127, 128, 255), (0, 0, 0), (64, 64, 64),
++#            (192, 192, 192), (255, 255, 255),
++#        ],
++#        marks=pytest.mark.xfail(reason="Resulting image is a bad match")
++#    ),
++#    pytest.param(
++#        JPGB_08_08_3_0_1F_YBR_FULL_422,
++#        get_testdata_file("SC_rgb_dcmtk_ebcyn2_dcmd.dcm"),
++#        [
++#            (254, 0, 0), (255, 127, 127), (0, 255, 5), (129, 255, 129),
++#            (0, 0, 254), (128, 127, 255), (0, 0, 0), (64, 64, 64),
++#            (192, 192, 192), (255, 255, 255),
++#        ],
++#    ),
++#    pytest.param(
++#        JPGB_08_08_3_0_1F_YBR_FULL_444,
++#        get_testdata_file("SC_rgb_dcmtk_ebcys4_dcmd.dcm"),
++#        [
++#            (254, 0, 0), (255, 127, 127), (0, 255, 5), (129, 255, 129),
++#            (0, 0, 254), (128, 127, 255), (0, 0, 0), (64, 64, 64),
++#            (192, 192, 192), (255, 255, 255),
++#        ],
++#    ),
++#    pytest.param(
++#        JPGB_08_08_3_0_1F_RGB,
++#        get_testdata_file("SC_rgb_jpeg_dcmd.dcm"),
++#        [
++#            (244, 244, 244), (244, 244, 244), (244, 244, 244), (244, 244, 244),
++#            (236, 237, 234), (244, 244, 244), (244, 244, 244), (244, 244, 244),
++#            (244, 244, 244), (244, 244, 244),
++#        ],
++#    ),
++#    pytest.param(
++#        JPGB_08_08_3_0_1F_RGB_APP14,
++#        get_testdata_file("SC_rgb_jpeg_app14_dcmd.dcm"),
++#        [
++#            (246, 246, 246), (246, 246, 246), (246, 246, 246), (246, 246, 246),
++#            (246, 246, 246), (244, 244, 246), (246, 246, 246), (246, 246, 246),
++#            (246, 246, 246), (246, 246, 246),
++#        ],
++#    ),
+ ]
+ JPEG2K_MATCHING_DATASETS = [
+-    # (compressed, reference, fixes)
+-    pytest.param(
+-        J2KR_08_08_3_0_1F_YBR_ICT,
+-        get_testdata_file("US1_UNCR.dcm"),
+-        {},
+-    ),
+-    pytest.param(
+-        J2KR_16_10_1_0_1F_M1,
+-        get_testdata_file("RG3_UNCR.dcm"),
+-        {},
+-    ),
+-    pytest.param(
+-        J2KR_16_12_1_0_1F_M2,
+-        get_testdata_file("MR2_UNCR.dcm"),
+-        {},
+-    ),
+-    pytest.param(
+-        J2KR_16_15_1_0_1F_M1,
+-        get_testdata_file("RG1_UNCR.dcm"),
+-        {},
+-    ),
+-    pytest.param(
+-        J2KR_16_16_1_0_10F_M2,
+-        get_testdata_file("emri_small.dcm"),
+-        {'BitsStored': 16},
+-    ),
+-    pytest.param(
+-        J2KR_16_14_1_1_1F_M2,
+-        get_testdata_file("693_UNCR.dcm"),
+-        {'BitsStored': 14},
+-    ),
+-    pytest.param(
+-        J2KR_16_16_1_1_1F_M2,
+-        get_testdata_file("MR_small.dcm"),
+-        {},
+-    ),
+-    pytest.param(
+-        J2KI_08_08_3_0_1F_RGB,
+-        get_testdata_file("SC_rgb_gdcm2k_uncompressed.dcm"),
+-        {},
+-    ),
+-    pytest.param(
+-        J2KI_08_08_3_0_1F_YBR_ICT,
+-        get_testdata_file("US1_UNCI.dcm"),
+-        {},
+-    ),
+-    pytest.param(
+-        J2KI_16_10_1_0_1F_M1,
+-        get_testdata_file("RG3_UNCI.dcm"),
+-        {},
+-    ),
+-    pytest.param(
+-        J2KI_16_12_1_0_1F_M2,
+-        get_testdata_file("MR2_UNCI.dcm"),
+-        {},
+-    ),
+-    pytest.param(
+-        J2KI_16_15_1_0_1F_M1,
+-        get_testdata_file("RG1_UNCI.dcm"),
+-        {},
+-    ),
+-    pytest.param(
+-        J2KI_16_14_1_1_1F_M2,
+-        get_testdata_file("693_UNCI.dcm"),
+-        {'BitsStored': 16},
+-    ),
+-    pytest.param(
+-        J2KI_16_16_1_1_1F_M2,
+-        get_testdata_file("JPEG2000_UNC.dcm"),
+-        {},
+-    ),
++#    # (compressed, reference, fixes)
++#    pytest.param(
++#        J2KR_08_08_3_0_1F_YBR_ICT,
++#        get_testdata_file("US1_UNCR.dcm"),
++#        {},
++#    ),
++#    pytest.param(
++#        J2KR_16_10_1_0_1F_M1,
++#        get_testdata_file("RG3_UNCR.dcm"),
++#        {},
++#    ),
++#    pytest.param(
++#        J2KR_16_12_1_0_1F_M2,
++#        get_testdata_file("MR2_UNCR.dcm"),
++#        {},
++#    ),
++#    pytest.param(
++#        J2KR_16_15_1_0_1F_M1,
++#        get_testdata_file("RG1_UNCR.dcm"),
++#        {},
++#    ),
++#    pytest.param(
++#        J2KR_16_16_1_0_10F_M2,
++#        get_testdata_file("emri_small.dcm"),
++#        {'BitsStored': 16},
++#    ),
++#    pytest.param(
++#        J2KR_16_14_1_1_1F_M2,
++#        get_testdata_file("693_UNCR.dcm"),
++#        {'BitsStored': 14},
++#    ),
++#    pytest.param(
++#        J2KR_16_16_1_1_1F_M2,
++#        get_testdata_file("MR_small.dcm"),
++#        {},
++#    ),
++#    pytest.param(
++#        J2KI_08_08_3_0_1F_RGB,
++#        get_testdata_file("SC_rgb_gdcm2k_uncompressed.dcm"),
++#        {},
++#    ),
++#    pytest.param(
++#        J2KI_08_08_3_0_1F_YBR_ICT,
++#        get_testdata_file("US1_UNCI.dcm"),
++#        {},
++#    ),
++#    pytest.param(
++#        J2KI_16_10_1_0_1F_M1,
++#        get_testdata_file("RG3_UNCI.dcm"),
++#        {},
++#    ),
++#    pytest.param(
++#        J2KI_16_12_1_0_1F_M2,
++#        get_testdata_file("MR2_UNCI.dcm"),
++#        {},
++#    ),
++#    pytest.param(
++#        J2KI_16_15_1_0_1F_M1,
++#        get_testdata_file("RG1_UNCI.dcm"),
++#        {},
++#    ),
++#    pytest.param(
++#        J2KI_16_14_1_1_1F_M2,
++#        get_testdata_file("693_UNCI.dcm"),
++#        {'BitsStored': 16},
++#    ),
++#    pytest.param(
++#        J2KI_16_16_1_1_1F_M2,
++#        get_testdata_file("JPEG2000_UNC.dcm"),
++#        {},
++#    ),
+ ]
+ 
+ 
+@@ -408,6 +408,7 @@ class TestPillowHandler_JPEG2K:
+             with pytest.raises((NotImplementedError, RuntimeError)):
+                 ds.pixel_array
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     @pytest.mark.parametrize("fpath, data", REFERENCE_DATA_UNSUPPORTED)
+     def test_can_access_unsupported_dataset(self, fpath, data):
+         """Test can read and access elements in unsupported datasets."""
+@@ -415,6 +416,7 @@ class TestPillowHandler_JPEG2K:
+         assert data[0] == ds.file_meta.TransferSyntaxUID
+         assert data[1] == ds.PatientName
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     @pytest.mark.parametrize('fpath, data', REFERENCE_DATA)
+     def test_properties(self, fpath, data):
+         """Test dataset and pixel array properties are as expected."""
+@@ -439,6 +441,7 @@ class TestPillowHandler_JPEG2K:
+         assert data[5] == arr.shape
+         assert arr.dtype == data[6]
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     @pytest.mark.parametrize('fpath, rpath, fixes', JPEG2K_MATCHING_DATASETS)
+     def test_array(self, fpath, rpath, fixes):
+         """Test pixel_array returns correct values."""
+@@ -453,6 +456,7 @@ class TestPillowHandler_JPEG2K:
+         ref = dcmread(rpath).pixel_array
+         assert np.array_equal(arr, ref)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_warning(self):
+         """Test that the precision warning works OK."""
+         ds = dcmread(J2KR_16_14_1_1_1F_M2)
+@@ -464,6 +468,7 @@ class TestPillowHandler_JPEG2K:
+         with pytest.warns(UserWarning, match=msg):
+             ds.pixel_array
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_decompress_using_pillow(self):
+         """Test decompressing JPEG2K with pillow handler succeeds."""
+         ds = dcmread(J2KR_16_14_1_1_1F_M2)
+@@ -474,6 +479,8 @@ class TestPillowHandler_JPEG2K:
+         ref = ds.pixel_array
+         assert np.array_equal(arr, ref)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_changing_bits_stored(self):
+         """Test changing BitsStored affects the pixel data."""
+         pydicom.config.APPLY_J2K_CORRECTIONS = False
+@@ -486,6 +493,7 @@ class TestPillowHandler_JPEG2K:
+         arr_14 = ds.pixel_array
+         assert not np.array_equal(arr, arr_14)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_pixel_rep_mismatch(self):
+         """Test mismatched j2k sign and Pixel Representation."""
+         ds = dcmread(J2KR_16_13_1_1_1F_M2_MISMATCH)
+@@ -546,6 +554,7 @@ class TestPillowHandler_JPEG:
+         assert data[0] == ds.file_meta.TransferSyntaxUID
+         assert data[1] == ds.PatientName
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     @pytest.mark.parametrize('fpath, data', REFERENCE_DATA)
+     def test_properties(self, fpath, data):
+         """Test dataset and pixel array properties are as expected."""
+@@ -564,6 +573,7 @@ class TestPillowHandler_JPEG:
+         assert data[5] == arr.shape
+         assert arr.dtype == data[6]
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     @pytest.mark.parametrize('fpath, rpath, values', JPEG_MATCHING_DATASETS)
+     def test_array(self, fpath, rpath, values):
+         """Test pixel_array returns correct values."""
+@@ -588,6 +598,7 @@ class TestPillowHandler_JPEG:
+ 
+         assert np.array_equal(arr, ref)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_color_3d(self):
+         """Test decoding JPEG with pillow handler succeeds."""
+         ds = dcmread(JPGB_08_08_3_0_120F_YBR_FULL_422)
+@@ -602,6 +613,7 @@ class TestPillowHandler_JPEG:
+ 
+         assert "YBR_FULL_422" == ds.PhotometricInterpretation
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_JPGE_16bit_raises(self):
+         """Test decoding JPEG lossy with pillow handler fails."""
+         ds = dcmread(JPGE_16_12_1_0_1F_M2)
+@@ -612,6 +624,7 @@ class TestPillowHandler_JPEG:
+         with pytest.raises(NotImplementedError, match=msg):
+             ds.pixel_array
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_JPGL_raises(self):
+         """Test decoding JPEG Lossless with pillow handler fails."""
+         ds = dcmread(JPGL_16_16_1_1_1F_M2)
+@@ -619,6 +632,7 @@ class TestPillowHandler_JPEG:
+         with pytest.raises(NotImplementedError, match=msg):
+             ds.pixel_array
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_JPGB_odd_data_size(self):
+         """Test decoding JPEG Baseline with pillow handler succeeds."""
+         ds = dcmread(JPGB_08_08_3_0_1F_YBR_FULL)
+--- a/pydicom/tests/test_pylibjpeg.py
++++ b/pydicom/tests/test_pylibjpeg.py
+@@ -71,258 +71,258 @@ UNSUPPORTED_SYNTAXES = list(
+     set(AllTransferSyntaxes) ^ set(SUPPORTED_SYNTAXES)
+ )
+ 
+-# Transfer syntaxes supported by other handlers
+-IMPL = get_testdata_file("MR_small_implicit.dcm")
+-EXPL = get_testdata_file("OBXXXX1A.dcm")
+-EXPB = get_testdata_file("OBXXXX1A_expb.dcm")
+-DEFL = get_testdata_file("image_dfl.dcm")
+-
+-REFERENCE_DATA_UNSUPPORTED = [
+-    (IMPL, ('1.2.840.10008.1.2', 'CompressedSamples^MR1')),
+-    (EXPL, ('1.2.840.10008.1.2.1', 'OB^^^^')),
+-    (EXPB, ('1.2.840.10008.1.2.2', 'OB^^^^')),
+-    (DEFL, ('1.2.840.10008.1.2.1.99', '^^^^')),
+-]
+-
+-# RLE Lossless - PackBits algorithm
+-RLE_8_1_1F = get_testdata_file("OBXXXX1A_rle.dcm")
+-RLE_8_1_2F = get_testdata_file("OBXXXX1A_rle_2frame.dcm")
+-RLE_8_3_1F = get_testdata_file("SC_rgb_rle.dcm")
+-RLE_8_3_2F = get_testdata_file("SC_rgb_rle_2frame.dcm")
+-RLE_16_1_1F = get_testdata_file("MR_small_RLE.dcm")
+-RLE_16_1_10F = get_testdata_file("emri_small_RLE.dcm")
+-RLE_16_3_1F = get_testdata_file("SC_rgb_rle_16bit.dcm")
+-RLE_16_3_2F = get_testdata_file("SC_rgb_rle_16bit_2frame.dcm")
+-RLE_32_1_1F = get_testdata_file("rtdose_rle_1frame.dcm")
+-RLE_32_1_15F = get_testdata_file("rtdose_rle.dcm")
+-RLE_32_3_1F = get_testdata_file("SC_rgb_rle_32bit.dcm")
+-RLE_32_3_2F = get_testdata_file("SC_rgb_rle_32bit_2frame.dcm")
+-
+-# JPEG - ISO/IEC 10918 Standard
+-# FMT_BA_BV_SPX_PR_FRAMESF_PI
+-# JPGB: 1.2.840.10008.1.2.4.50 - JPEG Baseline (8-bit only)
+-JPGB_08_08_3_0_1F_YBR_FULL = get_testdata_file("SC_rgb_small_odd_jpeg.dcm")
+-JPGB_08_08_3_0_120F_YBR_FULL_422 = get_testdata_file("color3d_jpeg_baseline.dcm")  # noqa
+-# Different subsampling 411, 422, 444
+-JPGB_08_08_3_0_1F_YBR_FULL_422_411 = get_testdata_file("SC_rgb_dcmtk_+eb+cy+np.dcm")  # noqa
+-JPGB_08_08_3_0_1F_YBR_FULL_422_422 = get_testdata_file("SC_rgb_dcmtk_+eb+cy+s2.dcm")  # noqa
+-JPGB_08_08_3_0_1F_YBR_FULL_411 = get_testdata_file("SC_rgb_dcmtk_+eb+cy+n1.dcm")  # noqa
+-JPGB_08_08_3_0_1F_YBR_FULL_422 = get_testdata_file("SC_rgb_dcmtk_+eb+cy+n2.dcm")  # noqa
+-JPGB_08_08_3_0_1F_YBR_FULL_444 = get_testdata_file("SC_rgb_dcmtk_+eb+cy+s4.dcm")  # noqa
+-JPGB_08_08_3_0_1F_RGB = get_testdata_file("SC_rgb_dcmtk_+eb+cr.dcm")
+-# JPGE: 1.2.840.1.2.4.51 - JPEG Extended
+-JPGE_BAD = get_testdata_file("JPEG-lossy.dcm")  # Bad JPEG file
+-JPGE_16_12_1_0_1F_M2 = get_testdata_file("JPGExtended.dcm")  # Fixed version
+-# JPGL: 1.2.840.10008.1.2.4.70 - JPEG Lossless, Non-hierarchical, 1st Order
+-JPGL_08_08_1_0_1F = get_testdata_file("JPGLosslessP14SV1_1s_1f_8b.dcm")
+-JPGL_16_16_1_1_1F_M2 = get_testdata_file("JPEG-LL.dcm")
+-
+-JPGB = JPEGBaseline8Bit
+-JPGE = JPEGExtended12Bit
+-JPGL = JPEGLosslessSV1
+-
++## Transfer syntaxes supported by other handlers
++#IMPL = get_testdata_file("MR_small_implicit.dcm")
++#EXPL = get_testdata_file("OBXXXX1A.dcm")
++#EXPB = get_testdata_file("OBXXXX1A_expb.dcm")
++#DEFL = get_testdata_file("image_dfl.dcm")
++#
++#REFERENCE_DATA_UNSUPPORTED = [
++#    (IMPL, ('1.2.840.10008.1.2', 'CompressedSamples^MR1')),
++#    (EXPL, ('1.2.840.10008.1.2.1', 'OB^^^^')),
++#    (EXPB, ('1.2.840.10008.1.2.2', 'OB^^^^')),
++#    (DEFL, ('1.2.840.10008.1.2.1.99', '^^^^')),
++#]
++#
++## RLE Lossless - PackBits algorithm
++#RLE_8_1_1F = get_testdata_file("OBXXXX1A_rle.dcm")
++#RLE_8_1_2F = get_testdata_file("OBXXXX1A_rle_2frame.dcm")
++#RLE_8_3_1F = get_testdata_file("SC_rgb_rle.dcm")
++#RLE_8_3_2F = get_testdata_file("SC_rgb_rle_2frame.dcm")
++#RLE_16_1_1F = get_testdata_file("MR_small_RLE.dcm")
++#RLE_16_1_10F = get_testdata_file("emri_small_RLE.dcm")
++#RLE_16_3_1F = get_testdata_file("SC_rgb_rle_16bit.dcm")
++#RLE_16_3_2F = get_testdata_file("SC_rgb_rle_16bit_2frame.dcm")
++#RLE_32_1_1F = get_testdata_file("rtdose_rle_1frame.dcm")
++#RLE_32_1_15F = get_testdata_file("rtdose_rle.dcm")
++#RLE_32_3_1F = get_testdata_file("SC_rgb_rle_32bit.dcm")
++#RLE_32_3_2F = get_testdata_file("SC_rgb_rle_32bit_2frame.dcm")
++#
++## JPEG - ISO/IEC 10918 Standard
++## FMT_BA_BV_SPX_PR_FRAMESF_PI
++## JPGB: 1.2.840.10008.1.2.4.50 - JPEG Baseline (8-bit only)
++#JPGB_08_08_3_0_1F_YBR_FULL = get_testdata_file("SC_rgb_small_odd_jpeg.dcm")
++#JPGB_08_08_3_0_120F_YBR_FULL_422 = get_testdata_file("color3d_jpeg_baseline.dcm")  # noqa
++## Different subsampling 411, 422, 444
++#JPGB_08_08_3_0_1F_YBR_FULL_422_411 = get_testdata_file("SC_rgb_dcmtk_+eb+cy+np.dcm")  # noqa
++#JPGB_08_08_3_0_1F_YBR_FULL_422_422 = get_testdata_file("SC_rgb_dcmtk_+eb+cy+s2.dcm")  # noqa
++#JPGB_08_08_3_0_1F_YBR_FULL_411 = get_testdata_file("SC_rgb_dcmtk_+eb+cy+n1.dcm")  # noqa
++#JPGB_08_08_3_0_1F_YBR_FULL_422 = get_testdata_file("SC_rgb_dcmtk_+eb+cy+n2.dcm")  # noqa
++#JPGB_08_08_3_0_1F_YBR_FULL_444 = get_testdata_file("SC_rgb_dcmtk_+eb+cy+s4.dcm")  # noqa
++#JPGB_08_08_3_0_1F_RGB = get_testdata_file("SC_rgb_dcmtk_+eb+cr.dcm")
++## JPGE: 1.2.840.1.2.4.51 - JPEG Extended
++#JPGE_BAD = get_testdata_file("JPEG-lossy.dcm")  # Bad JPEG file
++#JPGE_16_12_1_0_1F_M2 = get_testdata_file("JPGExtended.dcm")  # Fixed version
++## JPGL: 1.2.840.10008.1.2.4.70 - JPEG Lossless, Non-hierarchical, 1st Order
++#JPGL_08_08_1_0_1F = get_testdata_file("JPGLosslessP14SV1_1s_1f_8b.dcm")
++#JPGL_16_16_1_1_1F_M2 = get_testdata_file("JPEG-LL.dcm")
++#
++#JPGB = JPEGBaseline8Bit
++#JPGE = JPEGExtended12Bit
++#JPGL = JPEGLosslessSV1
++#
+ JPG_REFERENCE_DATA = [
+-    # fpath, (syntax, bits, nr samples, pixel repr, nr frames, shape, dtype)
+-    (JPGB_08_08_3_0_120F_YBR_FULL_422, (JPGB, 8, 3, 0, 120, (120, 480, 640, 3), 'uint8')),  # noqa
+-    (JPGB_08_08_3_0_1F_YBR_FULL_422_411, (JPGB, 8, 3, 0, 1, (100, 100, 3), 'uint8')),  # noqa
+-    (JPGB_08_08_3_0_1F_YBR_FULL_422_422, (JPGB, 8, 3, 0, 1, (100, 100, 3), 'uint8')),  # noqa
+-    (JPGB_08_08_3_0_1F_YBR_FULL_411, (JPGB, 8, 3, 0, 1, (100, 100, 3), 'uint8')),  # noqa
+-    (JPGB_08_08_3_0_1F_YBR_FULL_422, (JPGB, 8, 3, 0, 1, (100, 100, 3), 'uint8')),  # noqa
+-    (JPGB_08_08_3_0_1F_YBR_FULL_444, (JPGB, 8, 3, 0, 1, (100, 100, 3), 'uint8')),  # noqa
+-    (JPGB_08_08_3_0_1F_RGB, (JPGB, 8, 3, 0, 1, (100, 100, 3), 'uint8')),
+-    (JPGE_16_12_1_0_1F_M2, (JPGE, 16, 1, 0, 1, (1024, 256), 'uint16')),
+-    (JPGL_08_08_1_0_1F, (JPGL, 8, 1, 0, 1, (768, 1024), 'uint8')),
+-    (JPGL_16_16_1_1_1F_M2, (JPGL, 16, 1, 1, 1, (1024, 256), 'int16')),
++#    # fpath, (syntax, bits, nr samples, pixel repr, nr frames, shape, dtype)
++#    (JPGB_08_08_3_0_120F_YBR_FULL_422, (JPGB, 8, 3, 0, 120, (120, 480, 640, 3), 'uint8')),  # noqa
++#    (JPGB_08_08_3_0_1F_YBR_FULL_422_411, (JPGB, 8, 3, 0, 1, (100, 100, 3), 'uint8')),  # noqa
++#    (JPGB_08_08_3_0_1F_YBR_FULL_422_422, (JPGB, 8, 3, 0, 1, (100, 100, 3), 'uint8')),  # noqa
++#    (JPGB_08_08_3_0_1F_YBR_FULL_411, (JPGB, 8, 3, 0, 1, (100, 100, 3), 'uint8')),  # noqa
++#    (JPGB_08_08_3_0_1F_YBR_FULL_422, (JPGB, 8, 3, 0, 1, (100, 100, 3), 'uint8')),  # noqa
++#    (JPGB_08_08_3_0_1F_YBR_FULL_444, (JPGB, 8, 3, 0, 1, (100, 100, 3), 'uint8')),  # noqa
++#    (JPGB_08_08_3_0_1F_RGB, (JPGB, 8, 3, 0, 1, (100, 100, 3), 'uint8')),
++#    (JPGE_16_12_1_0_1F_M2, (JPGE, 16, 1, 0, 1, (1024, 256), 'uint16')),
++#    (JPGL_08_08_1_0_1F, (JPGL, 8, 1, 0, 1, (768, 1024), 'uint8')),
++#    (JPGL_16_16_1_1_1F_M2, (JPGL, 16, 1, 1, 1, (1024, 256), 'int16')),
+ ]
+ JPG_MATCHING_DATASETS = [
+-    # (compressed, reference, hard coded check values), px tolerance
+-    pytest.param(
+-        JPGB_08_08_3_0_1F_YBR_FULL_422_411,
+-        get_testdata_file("SC_rgb_dcmtk_ebcynp_dcmd.dcm"),
+-        [
+-            (253, 1, 0), (253, 129, 131), (0, 255, 5), (127, 255, 129),
+-            (0, 0, 254), (127, 128, 255), (0, 0, 0), (64, 64, 64),
+-            (192, 192, 192), (255, 255, 255),
+-        ],
+-        2
+-    ),
+-    pytest.param(
+-        JPGB_08_08_3_0_1F_YBR_FULL_422_422,
+-        get_testdata_file("SC_rgb_dcmtk_ebcys2_dcmd.dcm"),
+-        [
+-            (254, 0, 0), (255, 127, 127), (0, 255, 5), (129, 255, 129),
+-            (0, 0, 254), (128, 127, 255), (0, 0, 0), (64, 64, 64),
+-            (192, 192, 192), (255, 255, 255),
+-        ],
+-        0
+-    ),
+-    pytest.param(
+-        JPGB_08_08_3_0_1F_YBR_FULL_411,
+-        get_testdata_file("SC_rgb_dcmtk_ebcyn1_dcmd.dcm"),
+-        [
+-            (253, 1, 0), (253, 129, 131), (0, 255, 5), (127, 255, 129),
+-            (0, 0, 254), (127, 128, 255), (0, 0, 0), (64, 64, 64),
+-            (192, 192, 192), (255, 255, 255),
+-        ],
+-        2
+-    ),
+-    pytest.param(
+-        JPGB_08_08_3_0_1F_YBR_FULL_422,
+-        get_testdata_file("SC_rgb_dcmtk_ebcyn2_dcmd.dcm"),
+-        [
+-            (254, 0, 0), (255, 127, 127), (0, 255, 5), (129, 255, 129),
+-            (0, 0, 254), (128, 127, 255), (0, 0, 0), (64, 64, 64),
+-            (192, 192, 192), (255, 255, 255),
+-        ],
+-        0
+-    ),
+-    pytest.param(
+-        JPGB_08_08_3_0_1F_YBR_FULL_444,
+-        get_testdata_file("SC_rgb_dcmtk_ebcys4_dcmd.dcm"),
+-        [
+-            (254, 0, 0), (255, 127, 127), (0, 255, 5), (129, 255, 129),
+-            (0, 0, 254), (128, 127, 255), (0, 0, 0), (64, 64, 64),
+-            (192, 192, 192), (255, 255, 255),
+-        ],
+-        0
+-    ),
+-    pytest.param(
+-        JPGB_08_08_3_0_1F_RGB,
+-        get_testdata_file("SC_rgb_dcmtk_ebcr_dcmd.dcm"),
+-        [
+-            (255, 0, 0), (255, 128, 128), (0, 255, 0), (128, 255, 128),
+-            (0, 0, 255), (128, 128, 255), (0, 0, 0), (64, 64, 64),
+-            (192, 192, 192), (255, 255, 255),
+-        ],
+-        1
+-    ),
++#    # (compressed, reference, hard coded check values), px tolerance
++#    pytest.param(
++#        JPGB_08_08_3_0_1F_YBR_FULL_422_411,
++#        get_testdata_file("SC_rgb_dcmtk_ebcynp_dcmd.dcm"),
++#        [
++#            (253, 1, 0), (253, 129, 131), (0, 255, 5), (127, 255, 129),
++#            (0, 0, 254), (127, 128, 255), (0, 0, 0), (64, 64, 64),
++#            (192, 192, 192), (255, 255, 255),
++#        ],
++#        2
++#    ),
++#    pytest.param(
++#        JPGB_08_08_3_0_1F_YBR_FULL_422_422,
++#        get_testdata_file("SC_rgb_dcmtk_ebcys2_dcmd.dcm"),
++#        [
++#            (254, 0, 0), (255, 127, 127), (0, 255, 5), (129, 255, 129),
++#            (0, 0, 254), (128, 127, 255), (0, 0, 0), (64, 64, 64),
++#            (192, 192, 192), (255, 255, 255),
++#        ],
++#        0
++#    ),
++#    pytest.param(
++#        JPGB_08_08_3_0_1F_YBR_FULL_411,
++#        get_testdata_file("SC_rgb_dcmtk_ebcyn1_dcmd.dcm"),
++#        [
++#            (253, 1, 0), (253, 129, 131), (0, 255, 5), (127, 255, 129),
++#            (0, 0, 254), (127, 128, 255), (0, 0, 0), (64, 64, 64),
++#            (192, 192, 192), (255, 255, 255),
++#        ],
++#        2
++#    ),
++#    pytest.param(
++#        JPGB_08_08_3_0_1F_YBR_FULL_422,
++#        get_testdata_file("SC_rgb_dcmtk_ebcyn2_dcmd.dcm"),
++#        [
++#            (254, 0, 0), (255, 127, 127), (0, 255, 5), (129, 255, 129),
++#            (0, 0, 254), (128, 127, 255), (0, 0, 0), (64, 64, 64),
++#            (192, 192, 192), (255, 255, 255),
++#        ],
++#        0
++#    ),
++#    pytest.param(
++#        JPGB_08_08_3_0_1F_YBR_FULL_444,
++#        get_testdata_file("SC_rgb_dcmtk_ebcys4_dcmd.dcm"),
++#        [
++#            (254, 0, 0), (255, 127, 127), (0, 255, 5), (129, 255, 129),
++#            (0, 0, 254), (128, 127, 255), (0, 0, 0), (64, 64, 64),
++#            (192, 192, 192), (255, 255, 255),
++#        ],
++#        0
++#    ),
++#    pytest.param(
++#        JPGB_08_08_3_0_1F_RGB,
++#        get_testdata_file("SC_rgb_dcmtk_ebcr_dcmd.dcm"),
++#        [
++#            (255, 0, 0), (255, 128, 128), (0, 255, 0), (128, 255, 128),
++#            (0, 0, 255), (128, 128, 255), (0, 0, 0), (64, 64, 64),
++#            (192, 192, 192), (255, 255, 255),
++#        ],
++#        1
++#    ),
+ ]
+-
+-
+-# JPEG-LS - ISO/IEC 14495 Standard
+-JLSL = JPEGLSNearLossless
+-JLSN = JPEGLSLossless
+-JPEG_LS_LOSSLESS = get_testdata_file("MR_small_jpeg_ls_lossless.dcm")
++#
++#
++## JPEG-LS - ISO/IEC 14495 Standard
++#JLSL = JPEGLSNearLossless
++#JLSN = JPEGLSLossless
++#JPEG_LS_LOSSLESS = get_testdata_file("MR_small_jpeg_ls_lossless.dcm")
+ JLS_REFERENCE_DATA = [
+-    # fpath, (syntax, bits, nr samples, pixel repr, nr frames, shape, dtype)
+-    (JPEG_LS_LOSSLESS, (JLSN, 16, 1, 1, 1, (64, 64), 'int16')),
++#    # fpath, (syntax, bits, nr samples, pixel repr, nr frames, shape, dtype)
++#    (JPEG_LS_LOSSLESS, (JLSN, 16, 1, 1, 1, (64, 64), 'int16')),
+ ]
+ 
+ # JPEG 2000 - ISO/IEC 15444 Standard
+ J2KR = JPEG2000Lossless
+ J2KI = JPEG2000
+-# J2KR: 1.2.840.100008.1.2.4.90 - JPEG 2000 Lossless
+-J2KR_08_08_3_0_1F_YBR_ICT = get_testdata_file("US1_J2KR.dcm")
+-J2KR_16_10_1_0_1F_M1 = get_testdata_file("RG3_J2KR.dcm")
+-J2KR_16_12_1_0_1F_M2 = get_testdata_file("MR2_J2KR.dcm")
+-J2KR_16_15_1_0_1F_M1 = get_testdata_file("RG1_J2KR.dcm")
+-J2KR_16_16_1_0_10F_M2 = get_testdata_file("emri_small_jpeg_2k_lossless.dcm")
+-J2KR_16_14_1_1_1F_M2 = get_testdata_file("693_J2KR.dcm")
+-J2KR_16_16_1_1_1F_M2 = get_testdata_file("MR_small_jp2klossless.dcm")
+-J2KR_16_13_1_1_1F_M2_MISMATCH = get_testdata_file("J2K_pixelrep_mismatch.dcm")
+-# Non-conformant pixel data -> JP2 header present
+-J2KR_08_08_3_0_1F_YBR_RCT = get_testdata_file("GDCMJ2K_TextGBR.dcm")
+-# J2KI: 1.2.840.10008.1.2.4.91 - JPEG 2000
+-J2KI_08_08_3_0_1F_RGB = get_testdata_file("SC_rgb_gdcm_KY.dcm")
+-J2KI_08_08_3_0_1F_YBR_ICT = get_testdata_file("US1_J2KI.dcm")
+-J2KI_16_10_1_0_1F_M1 = get_testdata_file("RG3_J2KI.dcm")
+-J2KI_16_12_1_0_1F_M2 = get_testdata_file("MR2_J2KI.dcm")
+-J2KI_16_15_1_0_1F_M1 = get_testdata_file("RG1_J2KI.dcm")
+-J2KI_16_14_1_1_1F_M2 = get_testdata_file("693_J2KI.dcm")
+-J2KI_16_16_1_1_1F_M2 = get_testdata_file("JPEG2000.dcm")
+-
++## J2KR: 1.2.840.100008.1.2.4.90 - JPEG 2000 Lossless
++#J2KR_08_08_3_0_1F_YBR_ICT = get_testdata_file("US1_J2KR.dcm")
++#J2KR_16_10_1_0_1F_M1 = get_testdata_file("RG3_J2KR.dcm")
++#J2KR_16_12_1_0_1F_M2 = get_testdata_file("MR2_J2KR.dcm")
++#J2KR_16_15_1_0_1F_M1 = get_testdata_file("RG1_J2KR.dcm")
++#J2KR_16_16_1_0_10F_M2 = get_testdata_file("emri_small_jpeg_2k_lossless.dcm")
++#J2KR_16_14_1_1_1F_M2 = get_testdata_file("693_J2KR.dcm")
++#J2KR_16_16_1_1_1F_M2 = get_testdata_file("MR_small_jp2klossless.dcm")
++#J2KR_16_13_1_1_1F_M2_MISMATCH = get_testdata_file("J2K_pixelrep_mismatch.dcm")
++## Non-conformant pixel data -> JP2 header present
++#J2KR_08_08_3_0_1F_YBR_RCT = get_testdata_file("GDCMJ2K_TextGBR.dcm")
++## J2KI: 1.2.840.10008.1.2.4.91 - JPEG 2000
++#J2KI_08_08_3_0_1F_RGB = get_testdata_file("SC_rgb_gdcm_KY.dcm")
++#J2KI_08_08_3_0_1F_YBR_ICT = get_testdata_file("US1_J2KI.dcm")
++#J2KI_16_10_1_0_1F_M1 = get_testdata_file("RG3_J2KI.dcm")
++#J2KI_16_12_1_0_1F_M2 = get_testdata_file("MR2_J2KI.dcm")
++#J2KI_16_15_1_0_1F_M1 = get_testdata_file("RG1_J2KI.dcm")
++#J2KI_16_14_1_1_1F_M2 = get_testdata_file("693_J2KI.dcm")
++#J2KI_16_16_1_1_1F_M2 = get_testdata_file("JPEG2000.dcm")
++#
+ J2K_REFERENCE_DATA = [
+-    # fpath, (syntax, bits, nr samples, pixel repr, nr frames, shape, dtype)
+-    (J2KR_08_08_3_0_1F_YBR_ICT, (J2KR, 8, 3, 0, 1, (480, 640, 3), 'uint8')),
+-    (J2KR_16_10_1_0_1F_M1, (J2KR, 16, 1, 0, 1, (1760, 1760), 'uint16')),
+-    (J2KR_16_12_1_0_1F_M2, (J2KR, 16, 1, 0, 1, (1024, 1024), 'uint16')),
+-    (J2KR_16_15_1_0_1F_M1, (J2KR, 16, 1, 0, 1, (1955, 1841), 'uint16')),
+-    # should be Bits Stored = 12
+-    (J2KR_16_16_1_0_10F_M2, (J2KR, 16, 1, 0, 10, (10, 64, 64), 'uint16')),
+-    # should be Bits Stored = 16
+-    (J2KR_16_14_1_1_1F_M2, (J2KR, 16, 1, 1, 1, (512, 512), 'int16')),
+-    (J2KR_16_16_1_1_1F_M2, (J2KR, 16, 1, 1, 1, (64, 64), 'int16')),
+-    (J2KI_08_08_3_0_1F_RGB, (J2KI, 8, 3, 0, 1, (100, 100, 3), 'uint8')),
+-    (J2KI_08_08_3_0_1F_YBR_ICT, (J2KI, 8, 3, 0, 1, (480, 640, 3), 'uint8')),
+-    (J2KI_16_10_1_0_1F_M1, (J2KI, 16, 1, 0, 1, (1760, 1760), 'uint16')),
+-    (J2KI_16_12_1_0_1F_M2, (J2KI, 16, 1, 0, 1, (1024, 1024), 'uint16')),
+-    (J2KI_16_15_1_0_1F_M1, (J2KI, 16, 1, 0, 1, (1955, 1841), 'uint16')),
+-    # should be Bits Stored = 16
+-    (J2KI_16_14_1_1_1F_M2, (J2KI, 16, 1, 1, 1, (512, 512), 'int16')),
+-    (J2KI_16_16_1_1_1F_M2, (J2KI, 16, 1, 1, 1, (1024, 256), 'int16')),
++#    # fpath, (syntax, bits, nr samples, pixel repr, nr frames, shape, dtype)
++#    (J2KR_08_08_3_0_1F_YBR_ICT, (J2KR, 8, 3, 0, 1, (480, 640, 3), 'uint8')),
++#    (J2KR_16_10_1_0_1F_M1, (J2KR, 16, 1, 0, 1, (1760, 1760), 'uint16')),
++#    (J2KR_16_12_1_0_1F_M2, (J2KR, 16, 1, 0, 1, (1024, 1024), 'uint16')),
++#    (J2KR_16_15_1_0_1F_M1, (J2KR, 16, 1, 0, 1, (1955, 1841), 'uint16')),
++#    # should be Bits Stored = 12
++#    (J2KR_16_16_1_0_10F_M2, (J2KR, 16, 1, 0, 10, (10, 64, 64), 'uint16')),
++#    # should be Bits Stored = 16
++#    (J2KR_16_14_1_1_1F_M2, (J2KR, 16, 1, 1, 1, (512, 512), 'int16')),
++#    (J2KR_16_16_1_1_1F_M2, (J2KR, 16, 1, 1, 1, (64, 64), 'int16')),
++#    (J2KI_08_08_3_0_1F_RGB, (J2KI, 8, 3, 0, 1, (100, 100, 3), 'uint8')),
++#    (J2KI_08_08_3_0_1F_YBR_ICT, (J2KI, 8, 3, 0, 1, (480, 640, 3), 'uint8')),
++#    (J2KI_16_10_1_0_1F_M1, (J2KI, 16, 1, 0, 1, (1760, 1760), 'uint16')),
++#    (J2KI_16_12_1_0_1F_M2, (J2KI, 16, 1, 0, 1, (1024, 1024), 'uint16')),
++#    (J2KI_16_15_1_0_1F_M1, (J2KI, 16, 1, 0, 1, (1955, 1841), 'uint16')),
++#    # should be Bits Stored = 16
++#    (J2KI_16_14_1_1_1F_M2, (J2KI, 16, 1, 1, 1, (512, 512), 'int16')),
++#    (J2KI_16_16_1_1_1F_M2, (J2KI, 16, 1, 1, 1, (1024, 256), 'int16')),
+ ]
+ J2K_MATCHING_DATASETS = [
+-    # (compressed, reference, fixes)
+-    pytest.param(
+-        J2KR_08_08_3_0_1F_YBR_ICT,
+-        get_testdata_file("US1_UNCR.dcm"),
+-        {},
+-    ),
+-    pytest.param(
+-        J2KR_16_10_1_0_1F_M1,
+-        get_testdata_file("RG3_UNCR.dcm"),
+-        {},
+-    ),
+-    pytest.param(
+-        J2KR_16_12_1_0_1F_M2,
+-        get_testdata_file("MR2_UNCR.dcm"),
+-        {},
+-    ),
+-    pytest.param(
+-        J2KR_16_15_1_0_1F_M1,
+-        get_testdata_file("RG1_UNCR.dcm"),
+-        {},
+-    ),
+-    pytest.param(
+-        J2KR_16_16_1_0_10F_M2,
+-        get_testdata_file("emri_small.dcm"),
+-        {'BitsStored': 16},
+-    ),
+-    pytest.param(
+-        J2KR_16_14_1_1_1F_M2,
+-        get_testdata_file("693_UNCR.dcm"),
+-        {'BitsStored': 14},
+-    ),
+-    pytest.param(
+-        J2KR_16_16_1_1_1F_M2,
+-        get_testdata_file("MR_small.dcm"),
+-        {},
+-    ),
+-    pytest.param(
+-        J2KI_08_08_3_0_1F_RGB,
+-        get_testdata_file("SC_rgb_gdcm2k_uncompressed.dcm"),
+-        {},
+-    ),
+-    pytest.param(
+-        J2KI_08_08_3_0_1F_YBR_ICT,
+-        get_testdata_file("US1_UNCI.dcm"),
+-        {},
+-    ),
+-    pytest.param(
+-        J2KI_16_10_1_0_1F_M1,
+-        get_testdata_file("RG3_UNCI.dcm"),
+-        {},
+-    ),
+-    pytest.param(
+-        J2KI_16_12_1_0_1F_M2,
+-        get_testdata_file("MR2_UNCI.dcm"),
+-        {},
+-    ),
+-    pytest.param(
+-        J2KI_16_15_1_0_1F_M1,
+-        get_testdata_file("RG1_UNCI.dcm"),
+-        {},
+-    ),
+-    pytest.param(
+-        J2KI_16_14_1_1_1F_M2,
+-        get_testdata_file("693_UNCI.dcm"),
+-        {'BitsStored': 16},
+-    ),
+-    pytest.param(
+-        J2KI_16_16_1_1_1F_M2,
+-        get_testdata_file("JPEG2000_UNC.dcm"),
+-        {},
+-    ),
++#    # (compressed, reference, fixes)
++#    pytest.param(
++#        J2KR_08_08_3_0_1F_YBR_ICT,
++#        get_testdata_file("US1_UNCR.dcm"),
++#        {},
++#    ),
++#    pytest.param(
++#        J2KR_16_10_1_0_1F_M1,
++#        get_testdata_file("RG3_UNCR.dcm"),
++#        {},
++#    ),
++#    pytest.param(
++#        J2KR_16_12_1_0_1F_M2,
++#        get_testdata_file("MR2_UNCR.dcm"),
++#        {},
++#    ),
++#    pytest.param(
++#        J2KR_16_15_1_0_1F_M1,
++#        get_testdata_file("RG1_UNCR.dcm"),
++#        {},
++#    ),
++#    pytest.param(
++#        J2KR_16_16_1_0_10F_M2,
++#        get_testdata_file("emri_small.dcm"),
++#        {'BitsStored': 16},
++#    ),
++#    pytest.param(
++#        J2KR_16_14_1_1_1F_M2,
++#        get_testdata_file("693_UNCR.dcm"),
++#        {'BitsStored': 14},
++#    ),
++#    pytest.param(
++#        J2KR_16_16_1_1_1F_M2,
++#        get_testdata_file("MR_small.dcm"),
++#        {},
++#    ),
++#    pytest.param(
++#        J2KI_08_08_3_0_1F_RGB,
++#        get_testdata_file("SC_rgb_gdcm2k_uncompressed.dcm"),
++#        {},
++#    ),
++#    pytest.param(
++#        J2KI_08_08_3_0_1F_YBR_ICT,
++#        get_testdata_file("US1_UNCI.dcm"),
++#        {},
++#    ),
++#    pytest.param(
++#        J2KI_16_10_1_0_1F_M1,
++#        get_testdata_file("RG3_UNCI.dcm"),
++#        {},
++#    ),
++#    pytest.param(
++#        J2KI_16_12_1_0_1F_M2,
++#        get_testdata_file("MR2_UNCI.dcm"),
++#        {},
++#    ),
++#    pytest.param(
++#        J2KI_16_15_1_0_1F_M1,
++#        get_testdata_file("RG1_UNCI.dcm"),
++#        {},
++#    ),
++#    pytest.param(
++#        J2KI_16_14_1_1_1F_M2,
++#        get_testdata_file("693_UNCI.dcm"),
++#        {'BitsStored': 16},
++#    ),
++#    pytest.param(
++#        J2KI_16_16_1_1_1F_M2,
++#        get_testdata_file("JPEG2000_UNC.dcm"),
++#        {},
++#    ),
+ ]
+ 
+ 
+@@ -361,6 +361,7 @@ class TestHandler:
+             with pytest.raises((NotImplementedError, RuntimeError)):
+                 ds.pixel_array
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     @pytest.mark.skipif(
+         HAVE_LJ or HAVE_OJ or HAVE_RLE, reason="plugins available"
+     )
+@@ -391,6 +392,7 @@ class TestHandler:
+         with pytest.raises(RuntimeError, match=msg):
+             ds.pixel_array
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_change_photometric_interpretation(self):
+         """Test returned value."""
+         ds = dcmread(J2KR_16_12_1_0_1F_M2)
+@@ -409,6 +411,7 @@ class TestJPEG:
+         """Restore the environment."""
+         pydicom.config.pixel_data_handlers = self.original_handlers
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     @pytest.mark.parametrize('fpath, data', JPG_REFERENCE_DATA)
+     def test_properties(self, fpath, data):
+         """Test dataset and pixel array properties are as expected."""
+@@ -425,6 +428,7 @@ class TestJPEG:
+         assert data[5] == arr.shape
+         assert arr.dtype == data[6]
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     @pytest.mark.parametrize('fpath, rpath, val, tol', JPG_MATCHING_DATASETS)
+     def test_array(self, fpath, rpath, val, tol):
+         """Test pixel_array returns correct values."""
+@@ -450,6 +454,7 @@ class TestJPEG:
+         # All results within `tol` intensity units of the reference
+         assert np.allclose(arr, ref, atol=tol)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     @pytest.mark.parametrize('fpath, rpath, val, tol', JPG_MATCHING_DATASETS)
+     def test_generate_frames(self, fpath, rpath, val, tol):
+         """Test pixel_array returns correct values."""
+@@ -484,6 +489,7 @@ class TestJPEG:
+         with pytest.raises(RuntimeError, match=msg):
+             ds.pixel_array
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_missing_element_raises(self):
+         """Test that missing required element raises exception."""
+         ds = dcmread(JPGB_08_08_3_0_1F_YBR_FULL)
+@@ -507,6 +513,7 @@ class TestJPEGLS:
+         """Restore the environment."""
+         pydicom.config.pixel_data_handlers = self.original_handlers
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     @pytest.mark.parametrize('fpath, data', JLS_REFERENCE_DATA)
+     def test_properties(self, fpath, data):
+         """Test dataset and pixel array properties are as expected."""
+@@ -523,6 +530,7 @@ class TestJPEGLS:
+         assert data[5] == arr.shape
+         assert arr.dtype == data[6]
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_arrary(self):
+         """Test returned array values are OK."""
+         ds = dcmread(JPEG_LS_LOSSLESS)
+@@ -546,6 +554,7 @@ class TestJPEG2K:
+         """Restore the environment."""
+         pydicom.config.pixel_data_handlers = self.original_handlers
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     @pytest.mark.parametrize('fpath, data', J2K_REFERENCE_DATA)
+     def test_properties_as_array(self, fpath, data):
+         """Test dataset, pixel_array and as_array() are as expected."""
+@@ -584,6 +593,7 @@ class TestJPEG2K:
+         assert data[5] == arr.shape
+         assert arr.dtype == data[6]
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     @pytest.mark.parametrize('fpath, rpath, fixes', J2K_MATCHING_DATASETS)
+     def test_array(self, fpath, rpath, fixes):
+         """Test pixel_array returns correct values."""
+@@ -597,6 +607,7 @@ class TestJPEG2K:
+         ref = dcmread(rpath).pixel_array
+         assert np.array_equal(arr, ref)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     @pytest.mark.parametrize('fpath, rpath, fixes', J2K_MATCHING_DATASETS)
+     def test_generate_frames(self, fpath, rpath, fixes):
+         """Test pixel_array returns correct values."""
+@@ -620,6 +631,7 @@ class TestJPEG2K:
+         with pytest.raises(StopIteration):
+             next(frame_generator)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_warnings(self):
+         """Test the plugin warnings work."""
+         # Bits Stored
+@@ -667,6 +679,7 @@ class TestJPEG2K:
+         with pytest.warns(UserWarning, match=msg):
+             ds.pixel_array
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_decompress_using_pylibjpeg(self):
+         """Test decompressing JPEG2K with pylibjpeg handler succeeds."""
+         ds = dcmread(J2KR_16_12_1_0_1F_M2)
+@@ -677,6 +690,7 @@ class TestJPEG2K:
+         ref = ds.pixel_array
+         assert np.array_equal(arr, ref)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_pixel_rep_mismatch(self):
+         """Test mismatched j2k sign and Pixel Representation."""
+         ds = dcmread(J2KR_16_13_1_1_1F_M2_MISMATCH)
+@@ -706,37 +720,38 @@ class TestJPEG2K:
+ 
+ 
+ RLE_REFERENCE_DATA = [
+-    # fpath, (bits, nr samples, pixel repr, nr frames, shape, dtype)
+-    (RLE_8_1_1F, (8, 1, 0, 1, (600, 800), 'uint8')),
+-    (RLE_8_1_2F, (8, 1, 0, 2, (2, 600, 800), 'uint8')),
+-    (RLE_8_3_1F, (8, 3, 0, 1, (100, 100, 3), 'uint8')),
+-    (RLE_8_3_2F, (8, 3, 0, 2, (2, 100, 100, 3), 'uint8')),
+-    (RLE_16_1_1F, (16, 1, 1, 1, (64, 64), 'int16')),
+-    (RLE_16_1_10F, (16, 1, 0, 10, (10, 64, 64), 'uint16')),
+-    (RLE_16_3_1F, (16, 3, 0, 1, (100, 100, 3), 'uint16')),
+-    (RLE_16_3_2F, (16, 3, 0, 2, (2, 100, 100, 3), 'uint16')),
+-    (RLE_32_1_1F, (32, 1, 0, 1, (10, 10), 'uint32')),
+-    (RLE_32_1_15F, (32, 1, 0, 15, (15, 10, 10), 'uint32')),
+-    (RLE_32_3_1F, (32, 3, 0, 1, (100, 100, 3), 'uint32')),
+-    (RLE_32_3_2F, (32, 3, 0, 2, (2, 100, 100, 3), 'uint32')),
++#    # fpath, (bits, nr samples, pixel repr, nr frames, shape, dtype)
++#    (RLE_8_1_1F, (8, 1, 0, 1, (600, 800), 'uint8')),
++#    (RLE_8_1_2F, (8, 1, 0, 2, (2, 600, 800), 'uint8')),
++#    (RLE_8_3_1F, (8, 3, 0, 1, (100, 100, 3), 'uint8')),
++#    (RLE_8_3_2F, (8, 3, 0, 2, (2, 100, 100, 3), 'uint8')),
++#    (RLE_16_1_1F, (16, 1, 1, 1, (64, 64), 'int16')),
++#    (RLE_16_1_10F, (16, 1, 0, 10, (10, 64, 64), 'uint16')),
++#    (RLE_16_3_1F, (16, 3, 0, 1, (100, 100, 3), 'uint16')),
++#    (RLE_16_3_2F, (16, 3, 0, 2, (2, 100, 100, 3), 'uint16')),
++#    (RLE_32_1_1F, (32, 1, 0, 1, (10, 10), 'uint32')),
++#    (RLE_32_1_15F, (32, 1, 0, 15, (15, 10, 10), 'uint32')),
++#    (RLE_32_3_1F, (32, 3, 0, 1, (100, 100, 3), 'uint32')),
++#    (RLE_32_3_2F, (32, 3, 0, 2, (2, 100, 100, 3), 'uint32')),
+ ]
+ RLE_MATCHING_DATASETS = [
+-    # (compressed, reference)
+-    pytest.param(RLE_8_1_1F, get_testdata_file("OBXXXX1A.dcm")),
+-    pytest.param(RLE_8_1_2F, get_testdata_file("OBXXXX1A_2frame.dcm")),
+-    pytest.param(RLE_8_3_1F, get_testdata_file("SC_rgb.dcm")),
+-    pytest.param(RLE_8_3_2F, get_testdata_file("SC_rgb_2frame.dcm")),
+-    pytest.param(RLE_16_1_1F, get_testdata_file("MR_small.dcm")),
+-    pytest.param(RLE_16_1_10F, get_testdata_file("emri_small.dcm")),
+-    pytest.param(RLE_16_3_1F, get_testdata_file("SC_rgb_16bit.dcm")),
+-    pytest.param(RLE_16_3_2F, get_testdata_file("SC_rgb_16bit_2frame.dcm")),
+-    pytest.param(RLE_32_1_1F, get_testdata_file("rtdose_1frame.dcm")),
+-    pytest.param(RLE_32_1_15F, get_testdata_file("rtdose.dcm")),
+-    pytest.param(RLE_32_3_1F, get_testdata_file("SC_rgb_32bit.dcm")),
+-    pytest.param(RLE_32_3_2F, get_testdata_file("SC_rgb_32bit_2frame.dcm")),
++#    # (compressed, reference)
++#    pytest.param(RLE_8_1_1F, get_testdata_file("OBXXXX1A.dcm")),
++#    pytest.param(RLE_8_1_2F, get_testdata_file("OBXXXX1A_2frame.dcm")),
++#    pytest.param(RLE_8_3_1F, get_testdata_file("SC_rgb.dcm")),
++#    pytest.param(RLE_8_3_2F, get_testdata_file("SC_rgb_2frame.dcm")),
++#    pytest.param(RLE_16_1_1F, get_testdata_file("MR_small.dcm")),
++#    pytest.param(RLE_16_1_10F, get_testdata_file("emri_small.dcm")),
++#    pytest.param(RLE_16_3_1F, get_testdata_file("SC_rgb_16bit.dcm")),
++#    pytest.param(RLE_16_3_2F, get_testdata_file("SC_rgb_16bit_2frame.dcm")),
++#    pytest.param(RLE_32_1_1F, get_testdata_file("rtdose_1frame.dcm")),
++#    pytest.param(RLE_32_1_15F, get_testdata_file("rtdose.dcm")),
++#    pytest.param(RLE_32_3_1F, get_testdata_file("SC_rgb_32bit.dcm")),
++#    pytest.param(RLE_32_3_2F, get_testdata_file("SC_rgb_32bit_2frame.dcm")),
+ ]
+ 
+ 
++ at pytest.mark.skip("When building a Debian package we can not download anything")
+ @pytest.mark.skipif(not TEST_RLE, reason="no -rle plugin")
+ class TestRLE:
+     def test_decompress_using_pylibjpeg(self):
+--- a/pydicom/tests/test_JPEG_LS_transfer_syntax.py
++++ b/pydicom/tests/test_JPEG_LS_transfer_syntax.py
+@@ -49,15 +49,16 @@ except ImportError:
+     gdcm_handler = None
+     HAVE_GDCM = False
+ 
+-mr_name = get_testdata_file("MR_small.dcm")
+-jpeg_ls_lossless_name = get_testdata_file("MR_small_jpeg_ls_lossless.dcm")
+-emri_name = get_testdata_file("emri_small.dcm")
+-emri_jpeg_ls_lossless = get_testdata_file(
+-    "emri_small_jpeg_ls_lossless.dcm")
++#mr_name = get_testdata_file("MR_small.dcm")
++#jpeg_ls_lossless_name = get_testdata_file("MR_small_jpeg_ls_lossless.dcm")
++#emri_name = get_testdata_file("emri_small.dcm")
++#emri_jpeg_ls_lossless = get_testdata_file(
++#    "emri_small_jpeg_ls_lossless.dcm")
+ dir_name = os.path.dirname(sys.argv[0])
+ save_dir = os.getcwd()
+ 
+ 
++ at pytest.mark.skip("When building a Debian package we can not download anything")
+ class Test_JPEG_LS_Lossless_transfer_syntax():
+     def setup_method(self, method):
+         self.jpeg_ls_lossless = dcmread(jpeg_ls_lossless_name)
+--- a/pydicom/tests/test_dataset.py
++++ b/pydicom/tests/test_dataset.py
+@@ -19,7 +19,7 @@ except ImportError:
+ import pydicom
+ from pydicom import config
+ from pydicom import dcmread
+-from pydicom.data import get_testdata_file
++#from pydicom.data import get_testdata_file
+ from pydicom.dataelem import DataElement, RawDataElement
+ from pydicom.dataset import (
+     Dataset, FileDataset, validate_file_meta, FileMetaDataset
+@@ -921,6 +921,7 @@ class TestDataset:
+         assert 'SOPInstanceUID' in group0000
+         assert 'SkipFrameRangeFlag' in group0000
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_get_item(self):
+         """Test Dataset.get_item"""
+         ds = Dataset()
+@@ -1097,6 +1098,7 @@ class TestDataset:
+         item = ds.get_private_item(0x0009, 0x02, 'Creator 2.0')
+         assert 2 == item.value
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_private_creator_from_raw_ds(self):
+         # regression test for #1078
+         ct_filename = get_testdata_file("CT_small.dcm")
+@@ -1108,6 +1110,7 @@ class TestDataset:
+         ds.private_block(0x13, 'GEMS_PATI_01', create=True)
+         assert ['GEMS_PATI_01'] == ds.private_creators(0x13)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_add_known_private_tag(self):
+         # regression test for #1082
+         ds = dcmread(get_testdata_file("CT_small.dcm"))
+@@ -1480,6 +1483,7 @@ class TestDataset:
+         ds.save_as(fp)
+         assert elem.is_undefined_length
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_with(self):
+         """Test Dataset.__enter__ and __exit__."""
+         test_file = get_testdata_file('CT_small.dcm')
+@@ -1497,6 +1501,7 @@ class TestDataset:
+         with pytest.raises(ValueError, match="Random ex message!"):
+             getattr(DSException(), 'test')
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_pixel_array_already_have(self):
+         """Test Dataset._get_pixel_array when we already have the array"""
+         # Test that _pixel_array is returned unchanged unless required
+@@ -1508,6 +1513,7 @@ class TestDataset:
+         assert get_image_pixel_ids(ds) == ds._pixel_id
+         assert 'Test Value' == ds._pixel_array
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_pixel_array_id_changed(self):
+         """Test that we try to get new pixel data if the id has changed."""
+         fpath = get_testdata_file("CT_small.dcm")
+@@ -1524,6 +1530,7 @@ class TestDataset:
+ 
+         pydicom.config.pixel_data_handlers = orig_handlers
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_pixel_array_unknown_syntax(self):
+         """Test that pixel_array for an unknown syntax raises exception."""
+         ds = dcmread(get_testdata_file("CT_small.dcm"))
+@@ -1563,6 +1570,7 @@ class TestDataset:
+         ds.TransferSyntaxUID = '1.2.840.10008.1.2'
+         assert 'Implicit VR Little Endian' in str(ds)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_set_convert_private_elem_from_raw(self):
+         """Test Dataset.__setitem__ with a raw private element"""
+         test_file = get_testdata_file('CT_small.dcm')
+@@ -1584,6 +1592,7 @@ class TestDataset:
+         assert "Patient's Name" in ds.top()
+         assert "Patient ID" not in ds.top()
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_trait_names(self):
+         """Test Dataset.trait_names contains element keywords"""
+         test_file = get_testdata_file('CT_small.dcm')
+@@ -1769,6 +1778,7 @@ class TestDatasetElements:
+         assert 'ACME LTD' == file_meta.ImplementationVersionName
+ 
+ 
++ at pytest.mark.skip("When building a Debian package we can not download anything")
+ class TestFileDataset:
+     def setup(self):
+         self.test_file = get_testdata_file('CT_small.dcm')
+@@ -1923,6 +1933,7 @@ class TestFileDataset:
+         assert ds == ds2
+ 
+ 
++ at pytest.mark.skip("When building a Debian package we can not download anything")
+ class TestDatasetOverlayArray:
+     """Tests for Dataset.overlay_array()."""
+ 
+--- a/pydicom/tests/test_gdcm_pixel_data.py
++++ b/pydicom/tests/test_gdcm_pixel_data.py
+@@ -12,7 +12,7 @@ import pytest
+ 
+ import pydicom
+ from pydicom.filereader import dcmread
+-from pydicom.data import get_testdata_file
++#from pydicom.data import get_testdata_file
+ from pydicom.encaps import defragment_data
+ from pydicom.pixel_data_handlers.util import (
+     _convert_YBR_FULL_to_RGB, get_j2k_parameters
+@@ -47,59 +47,60 @@ if HAVE_GDCM:
+     import gdcm
+ 
+ 
+-empty_number_tags_name = get_testdata_file(
+-    "reportsi_with_empty_number_tags.dcm")
+-rtplan_name = get_testdata_file("rtplan.dcm")
+-rtdose_name = get_testdata_file("rtdose.dcm")
+-ct_name = get_testdata_file("CT_small.dcm")
+-mr_name = get_testdata_file("MR_small.dcm")
+-truncated_mr_name = get_testdata_file("MR_truncated.dcm")
+-jpeg2000_name = get_testdata_file("JPEG2000.dcm")
+-jpeg2000_lossless_name = get_testdata_file("MR_small_jp2klossless.dcm")
+-jpeg_ls_lossless_name = get_testdata_file("MR_small_jpeg_ls_lossless.dcm")
+-jpeg_lossy_name = get_testdata_file("JPEG-lossy.dcm")
+-jpeg_lossless_name = get_testdata_file("JPEG-LL.dcm")
+-jpeg_lossless_odd_data_size_name = get_testdata_file(
+-    'SC_rgb_small_odd_jpeg.dcm')
+-deflate_name = get_testdata_file("image_dfl.dcm")
+-rtstruct_name = get_testdata_file("rtstruct.dcm")
+-priv_SQ_name = get_testdata_file("priv_SQ.dcm")
+-nested_priv_SQ_name = get_testdata_file("nested_priv_SQ.dcm")
+-meta_missing_tsyntax_name = get_testdata_file("meta_missing_tsyntax.dcm")
+-no_meta_group_length = get_testdata_file("no_meta_group_length.dcm")
+-gzip_name = get_testdata_file("zipMR.gz")
+-color_px_name = get_testdata_file("color-px.dcm")
+-color_pl_name = get_testdata_file("color-pl.dcm")
+-explicit_vr_le_no_meta = get_testdata_file("ExplVR_LitEndNoMeta.dcm")
+-explicit_vr_be_no_meta = get_testdata_file("ExplVR_BigEndNoMeta.dcm")
+-emri_name = get_testdata_file("emri_small.dcm")
+-emri_big_endian_name = get_testdata_file("emri_small_big_endian.dcm")
+-emri_jpeg_ls_lossless = get_testdata_file(
+-    "emri_small_jpeg_ls_lossless.dcm")
+-emri_jpeg_2k_lossless = get_testdata_file(
+-    "emri_small_jpeg_2k_lossless.dcm")
+-color_3d_jpeg_baseline = get_testdata_file("color3d_jpeg_baseline.dcm")
+-sc_rgb_jpeg_dcmtk_411_YBR_FULL_422 = get_testdata_file(
+-    "SC_rgb_dcmtk_+eb+cy+np.dcm")
+-sc_rgb_jpeg_dcmtk_411_YBR_FULL = get_testdata_file(
+-    "SC_rgb_dcmtk_+eb+cy+n1.dcm")
+-sc_rgb_jpeg_dcmtk_422_YBR_FULL = get_testdata_file(
+-    "SC_rgb_dcmtk_+eb+cy+n2.dcm")
+-sc_rgb_jpeg_dcmtk_444_YBR_FULL = get_testdata_file(
+-    "SC_rgb_dcmtk_+eb+cy+s4.dcm")
+-sc_rgb_jpeg_dcmtk_422_YBR_FULL_422 = get_testdata_file(
+-    "SC_rgb_dcmtk_+eb+cy+s2.dcm")
+-sc_rgb_jpeg_dcmtk_RGB = get_testdata_file("SC_rgb_dcmtk_+eb+cr.dcm")
+-sc_rgb_jpeg2k_gdcm_KY = get_testdata_file("SC_rgb_gdcm_KY.dcm")
+-ground_truth_sc_rgb_jpeg2k_gdcm_KY_gdcm = get_testdata_file(
+-    "SC_rgb_gdcm2k_uncompressed.dcm"
+-)
+-J2KR_16_13_1_1_1F_M2_MISMATCH = get_testdata_file("J2K_pixelrep_mismatch.dcm")
++#empty_number_tags_name = get_testdata_file(
++#    "reportsi_with_empty_number_tags.dcm")
++#rtplan_name = get_testdata_file("rtplan.dcm")
++#rtdose_name = get_testdata_file("rtdose.dcm")
++#ct_name = get_testdata_file("CT_small.dcm")
++#mr_name = get_testdata_file("MR_small.dcm")
++#truncated_mr_name = get_testdata_file("MR_truncated.dcm")
++#jpeg2000_name = get_testdata_file("JPEG2000.dcm")
++#jpeg2000_lossless_name = get_testdata_file("MR_small_jp2klossless.dcm")
++#jpeg_ls_lossless_name = get_testdata_file("MR_small_jpeg_ls_lossless.dcm")
++#jpeg_lossy_name = get_testdata_file("JPEG-lossy.dcm")
++#jpeg_lossless_name = get_testdata_file("JPEG-LL.dcm")
++#jpeg_lossless_odd_data_size_name = get_testdata_file(
++#    'SC_rgb_small_odd_jpeg.dcm')
++#deflate_name = get_testdata_file("image_dfl.dcm")
++#rtstruct_name = get_testdata_file("rtstruct.dcm")
++#priv_SQ_name = get_testdata_file("priv_SQ.dcm")
++#nested_priv_SQ_name = get_testdata_file("nested_priv_SQ.dcm")
++#meta_missing_tsyntax_name = get_testdata_file("meta_missing_tsyntax.dcm")
++#no_meta_group_length = get_testdata_file("no_meta_group_length.dcm")
++#gzip_name = get_testdata_file("zipMR.gz")
++#color_px_name = get_testdata_file("color-px.dcm")
++#color_pl_name = get_testdata_file("color-pl.dcm")
++#explicit_vr_le_no_meta = get_testdata_file("ExplVR_LitEndNoMeta.dcm")
++#explicit_vr_be_no_meta = get_testdata_file("ExplVR_BigEndNoMeta.dcm")
++#emri_name = get_testdata_file("emri_small.dcm")
++#emri_big_endian_name = get_testdata_file("emri_small_big_endian.dcm")
++#emri_jpeg_ls_lossless = get_testdata_file(
++#    "emri_small_jpeg_ls_lossless.dcm")
++#emri_jpeg_2k_lossless = get_testdata_file(
++#    "emri_small_jpeg_2k_lossless.dcm")
++#color_3d_jpeg_baseline = get_testdata_file("color3d_jpeg_baseline.dcm")
++#sc_rgb_jpeg_dcmtk_411_YBR_FULL_422 = get_testdata_file(
++#    "SC_rgb_dcmtk_+eb+cy+np.dcm")
++#sc_rgb_jpeg_dcmtk_411_YBR_FULL = get_testdata_file(
++#    "SC_rgb_dcmtk_+eb+cy+n1.dcm")
++#sc_rgb_jpeg_dcmtk_422_YBR_FULL = get_testdata_file(
++#    "SC_rgb_dcmtk_+eb+cy+n2.dcm")
++#sc_rgb_jpeg_dcmtk_444_YBR_FULL = get_testdata_file(
++#    "SC_rgb_dcmtk_+eb+cy+s4.dcm")
++#sc_rgb_jpeg_dcmtk_422_YBR_FULL_422 = get_testdata_file(
++#    "SC_rgb_dcmtk_+eb+cy+s2.dcm")
++#sc_rgb_jpeg_dcmtk_RGB = get_testdata_file("SC_rgb_dcmtk_+eb+cr.dcm")
++#sc_rgb_jpeg2k_gdcm_KY = get_testdata_file("SC_rgb_gdcm_KY.dcm")
++#ground_truth_sc_rgb_jpeg2k_gdcm_KY_gdcm = get_testdata_file(
++#    "SC_rgb_gdcm2k_uncompressed.dcm"
++#)
++#J2KR_16_13_1_1_1F_M2_MISMATCH = get_testdata_file("J2K_pixelrep_mismatch.dcm")
+ 
+ dir_name = os.path.dirname(sys.argv[0])
+ save_dir = os.getcwd()
+ 
+ 
++ at pytest.mark.skip("When building a Debian package we can not download anything")
+ class TestGDCM_JPEG_LS_no_gdcm:
+     def setup(self):
+         self.unicode_filename = os.path.join(
+@@ -125,6 +126,7 @@ class TestGDCM_JPEG_LS_no_gdcm:
+             self.emri_jpeg_ls_lossless.pixel_array
+ 
+ 
++ at pytest.mark.skip("When building a Debian package we can not download anything")
+ class TestGDCM_JPEG2000_no_gdcm:
+     def setup(self):
+         self.jpeg_2k = dcmread(jpeg2000_name)
+@@ -212,133 +214,137 @@ class TestGDCM_JPEGlossless_no_gdcm:
+             self.jpeg_lossless.pixel_array
+ 
+ 
+-if have_pytest_param:
+-    pi_rgb_test_ids = [
+-        "JPEG_RGB_411_AS_YBR_FULL",
+-        "JPEG_RGB_411_AS_YBR_FULL_422",
+-        "JPEG_RGB_422_AS_YBR_FULL",
+-        "JPEG_RGB_422_AS_YBR_FULL_422",
+-        "JPEG_RGB_444_AS_YBR_FULL",
+-    ]
+-
+-    pi_rgb_testdata = [
+-        pytest.param(
+-            sc_rgb_jpeg_dcmtk_411_YBR_FULL,
+-            "YBR_FULL",
+-            [
+-                (253, 1, 0),
+-                (253, 128, 132),
+-                (0, 255, 5),
+-                (127, 255, 127),
+-                (1, 0, 254),
+-                (127, 128, 255),
+-                (0, 0, 0),
+-                (64, 64, 64),
+-                (192, 192, 192),
+-                (255, 255, 255),
+-            ],
+-            True,
+-            marks=pytest.mark.xfail(
+-                reason="GDCM does not support "
+-                "non default jpeg lossy colorspaces")),
+-        pytest.param(
+-            sc_rgb_jpeg_dcmtk_411_YBR_FULL_422,
+-            "YBR_FULL_422",
+-            [
+-                (253, 1, 0),
+-                (253, 128, 132),
+-                (0, 255, 5),
+-                (127, 255, 127),
+-                (1, 0, 254),
+-                (127, 128, 255),
+-                (0, 0, 0),
+-                (64, 64, 64),
+-                (192, 192, 192),
+-                (255, 255, 255),
+-            ],
+-            True,
+-            marks=pytest.mark.xfail(
+-                reason="GDCM does not support "
+-                "non default jpeg lossy colorspaces")),
+-        pytest.param(
+-            sc_rgb_jpeg_dcmtk_422_YBR_FULL,
+-            "YBR_FULL",
+-            [
+-                (254, 0, 0),
+-                (255, 127, 127),
+-                (0, 255, 5),
+-                (129, 255, 129),
+-                (0, 0, 254),
+-                (128, 127, 255),
+-                (0, 0, 0),
+-                (64, 64, 64),
+-                (192, 192, 192),
+-                (255, 255, 255),
+-            ],
+-            True,
+-            marks=pytest.mark.xfail(
+-                reason="GDCM does not support "
+-                "non default jpeg lossy colorspaces")),
+-        pytest.param(
+-            sc_rgb_jpeg_dcmtk_422_YBR_FULL_422,
+-            "YBR_FULL_422",
+-            [
+-                (254, 0, 0),
+-                (255, 127, 127),
+-                (0, 255, 5),
+-                (129, 255, 129),
+-                (0, 0, 254),
+-                (128, 127, 255),
+-                (0, 0, 0),
+-                (64, 64, 64),
+-                (192, 192, 192),
+-                (255, 255, 255),
+-            ],
+-            True,
+-            marks=pytest.mark.xfail(
+-                reason="GDCM does not support "
+-                "non default jpeg lossy colorspaces")),
+-        pytest.param(
+-            sc_rgb_jpeg_dcmtk_444_YBR_FULL,
+-            "YBR_FULL",
+-            [
+-                (254, 0, 0),
+-                (255, 127, 127),
+-                (0, 255, 5),
+-                (129, 255, 129),
+-                (0, 0, 254),
+-                (128, 127, 255),
+-                (0, 0, 0),
+-                (64, 64, 64),
+-                (192, 192, 192),
+-                (255, 255, 255),
+-            ],
+-            True,
+-            marks=pytest.mark.xfail(
+-                reason="GDCM does not support "
+-                "non default jpeg lossy colorspaces"))]
+-
+-    with_gdcm_params = [
+-        pytest.param('File', marks=pytest.mark.skipif(
+-            not HAVE_GDCM, reason=gdcm_missing_message)),
+-        pytest.param('InMemory', marks=pytest.mark.skipif(
+-            not HAVE_GDCM_IN_MEMORY_SUPPORT, reason=gdcm_im_missing_message))]
+-else:
+-    # python 3.4 can't parameterize with xfails...
+-    pi_rgb_test_ids = [
+-        "JPEG_RGB_RGB",
+-    ]
+-    pi_rgb_testdata = [
+-    ]
+-
+-    if HAVE_GDCM_IN_MEMORY_SUPPORT:
+-        with_gdcm_params = ['File', 'InMemory']
+-    elif HAVE_GDCM:
+-        with_gdcm_params = ['File']
+-    else:
+-        with_gdcm_params = []
++#if have_pytest_param:
++#    pi_rgb_test_ids = [
++#        "JPEG_RGB_411_AS_YBR_FULL",
++#        "JPEG_RGB_411_AS_YBR_FULL_422",
++#        "JPEG_RGB_422_AS_YBR_FULL",
++#        "JPEG_RGB_422_AS_YBR_FULL_422",
++#        "JPEG_RGB_444_AS_YBR_FULL",
++#    ]
++#
++#    pi_rgb_testdata = [
++#        pytest.param(
++#            sc_rgb_jpeg_dcmtk_411_YBR_FULL,
++#            "YBR_FULL",
++#            [
++#                (253, 1, 0),
++#                (253, 128, 132),
++#                (0, 255, 5),
++#                (127, 255, 127),
++#                (1, 0, 254),
++#                (127, 128, 255),
++#                (0, 0, 0),
++#                (64, 64, 64),
++#                (192, 192, 192),
++#                (255, 255, 255),
++#            ],
++#            True,
++#            marks=pytest.mark.xfail(
++#                reason="GDCM does not support "
++#                "non default jpeg lossy colorspaces")),
++#        pytest.param(
++#            sc_rgb_jpeg_dcmtk_411_YBR_FULL_422,
++#            "YBR_FULL_422",
++#            [
++#                (253, 1, 0),
++#                (253, 128, 132),
++#                (0, 255, 5),
++#                (127, 255, 127),
++#                (1, 0, 254),
++#                (127, 128, 255),
++#                (0, 0, 0),
++#                (64, 64, 64),
++#                (192, 192, 192),
++#                (255, 255, 255),
++#            ],
++#            True,
++#            marks=pytest.mark.xfail(
++#                reason="GDCM does not support "
++#                "non default jpeg lossy colorspaces")),
++#        pytest.param(
++#            sc_rgb_jpeg_dcmtk_422_YBR_FULL,
++#            "YBR_FULL",
++#            [
++#                (254, 0, 0),
++#                (255, 127, 127),
++#                (0, 255, 5),
++#                (129, 255, 129),
++#                (0, 0, 254),
++#                (128, 127, 255),
++#                (0, 0, 0),
++#                (64, 64, 64),
++#                (192, 192, 192),
++#                (255, 255, 255),
++#            ],
++#            True,
++#            marks=pytest.mark.xfail(
++#                reason="GDCM does not support "
++#                "non default jpeg lossy colorspaces")),
++#        pytest.param(
++#            sc_rgb_jpeg_dcmtk_422_YBR_FULL_422,
++#            "YBR_FULL_422",
++#            [
++#                (254, 0, 0),
++#                (255, 127, 127),
++#                (0, 255, 5),
++#                (129, 255, 129),
++#                (0, 0, 254),
++#                (128, 127, 255),
++#                (0, 0, 0),
++#                (64, 64, 64),
++#                (192, 192, 192),
++#                (255, 255, 255),
++#            ],
++#            True,
++#            marks=pytest.mark.xfail(
++#                reason="GDCM does not support "
++#                "non default jpeg lossy colorspaces")),
++#        pytest.param(
++#            sc_rgb_jpeg_dcmtk_444_YBR_FULL,
++#            "YBR_FULL",
++#            [
++#                (254, 0, 0),
++#                (255, 127, 127),
++#                (0, 255, 5),
++#                (129, 255, 129),
++#                (0, 0, 254),
++#                (128, 127, 255),
++#                (0, 0, 0),
++#                (64, 64, 64),
++#                (192, 192, 192),
++#                (255, 255, 255),
++#            ],
++#            True,
++#            marks=pytest.mark.xfail(
++#                reason="GDCM does not support "
++#                "non default jpeg lossy colorspaces"))]
++#
++#    with_gdcm_params = [
++#        pytest.param('File', marks=pytest.mark.skipif(
++#            not HAVE_GDCM, reason=gdcm_missing_message)),
++#        pytest.param('InMemory', marks=pytest.mark.skipif(
++#            not HAVE_GDCM_IN_MEMORY_SUPPORT, reason=gdcm_im_missing_message))]
++#else:
++#    # python 3.4 can't parameterize with xfails...
++#    pi_rgb_test_ids = [
++#        "JPEG_RGB_RGB",
++#    ]
++#    pi_rgb_testdata = [
++#    ]
++#
++#    if HAVE_GDCM_IN_MEMORY_SUPPORT:
++#        with_gdcm_params = ['File', 'InMemory']
++#    elif HAVE_GDCM:
++#        with_gdcm_params = ['File']
++#    else:
++#        with_gdcm_params = []
++pi_rgb_test_ids = []
++pi_rgb_testdata = []
++with_gdcm_params = []
+ 
+ 
++ at pytest.mark.skip("When building a Debian package we can not download anything")
+ class TestsWithGDCM:
+     @pytest.fixture(params=with_gdcm_params, scope='class', autouse=True)
+     def with_gdcm(self, request):
+@@ -572,7 +578,7 @@ class TestsWithGDCM:
+         )
+ 
+ 
+-
++ at pytest.mark.skip("When building a Debian package we can not download anything")
+ class TestSupportFunctions:
+     @pytest.fixture(scope='class')
+     def dataset_2d(self):


=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
 deb_no_unicode
+ignore_tests_downloading_data.patch



View it on GitLab: https://salsa.debian.org/med-team/pydicom/-/commit/749252c693fb29ad98dc3c36d901f31e611d7f9f

-- 
View it on GitLab: https://salsa.debian.org/med-team/pydicom/-/commit/749252c693fb29ad98dc3c36d901f31e611d7f9f
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20211208/999df530/attachment-0001.htm>


More information about the debian-med-commit mailing list