[med-svn] [Git][med-team/pydicom][master] 2 commits: Continue with exclusion of tests.

Andreas Tille (@tille) gitlab at salsa.debian.org
Sat Dec 11 08:49:31 GMT 2021



Andreas Tille pushed to branch master at Debian Med / pydicom


Commits:
20ed8270 by Andreas Tille at 2021-12-10T21:55:37+01:00
Continue with exclusion of tests.

- - - - -
30ce60ee by Andreas Tille at 2021-12-11T09:49:05+01:00
Finally all broken tests are excluded.

- - - - -


1 changed file:

- debian/patches/ignore_tests_downloading_data.patch


Changes:

=====================================
debian/patches/ignore_tests_downloading_data.patch
=====================================
@@ -73,7 +73,7 @@ Description: Several data files need to be downloaded which is not possible at p
      # 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
+@@ -54,52 +54,53 @@ TEST_JPEG2K = TEST_PIL and HAVE_JPEG2K
  # FRAMES: NumberOfFrames
  # PI: PhotometricInterpretation
  # FMT_BA_BV_SPX_PR_FRAMESF_PI
@@ -159,6 +159,7 @@ Description: Several data files need to be downloaded which is not possible at p
 +## Transfer syntaxes supported by other handlers
 +#IMPL = get_testdata_file("MR_small_implicit.dcm")
 +#EXPL = get_testdata_file("OBXXXX1A.dcm")
++EXPL = None
 +#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")
@@ -172,7 +173,7 @@ Description: Several data files need to be downloaded which is not possible at p
  
  
  # Transfer Syntaxes (non-retired + Explicit VR Big Endian)
-@@ -124,13 +124,13 @@ def test_unsupported_syntaxes():
+@@ -124,13 +125,13 @@ def test_unsupported_syntaxes():
  
  
  REFERENCE_DATA_UNSUPPORTED = [
@@ -193,7 +194,7 @@ Description: Several data files need to be downloaded which is not possible at p
  ]
  
  
-@@ -210,171 +210,171 @@ JPGL = JPEGLosslessSV1
+@@ -210,171 +211,171 @@ JPGL = JPEGLosslessSV1
  J2KI = JPEG2000
  J2KR = JPEG2000Lossless
  REFERENCE_DATA = [
@@ -526,7 +527,15 @@ Description: Several data files need to be downloaded which is not possible at p
  ]
  
  
-@@ -408,6 +408,7 @@ class TestPillowHandler_JPEG2K:
+@@ -398,6 +399,7 @@ class TestPillowHandler_JPEG2K:
+         assert HAVE_PIL
+         assert PIL_HANDLER is not None
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_unsupported_syntax_raises(self):
+         """Test pixel_array raises exception for unsupported syntaxes."""
+         pydicom.config.pixel_data_handlers = [PIL_HANDLER]
+@@ -408,6 +410,7 @@ class TestPillowHandler_JPEG2K:
              with pytest.raises((NotImplementedError, RuntimeError)):
                  ds.pixel_array
  
@@ -534,7 +543,7 @@ Description: Several data files need to be downloaded which is not possible at p
      @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:
+@@ -415,6 +418,7 @@ class TestPillowHandler_JPEG2K:
          assert data[0] == ds.file_meta.TransferSyntaxUID
          assert data[1] == ds.PatientName
  
@@ -542,7 +551,7 @@ Description: Several data files need to be downloaded which is not possible at p
      @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:
+@@ -439,6 +443,7 @@ class TestPillowHandler_JPEG2K:
          assert data[5] == arr.shape
          assert arr.dtype == data[6]
  
@@ -550,7 +559,7 @@ Description: Several data files need to be downloaded which is not possible at p
      @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:
+@@ -453,6 +458,7 @@ class TestPillowHandler_JPEG2K:
          ref = dcmread(rpath).pixel_array
          assert np.array_equal(arr, ref)
  
@@ -558,7 +567,7 @@ Description: Several data files need to be downloaded which is not possible at p
      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:
+@@ -464,6 +470,7 @@ class TestPillowHandler_JPEG2K:
          with pytest.warns(UserWarning, match=msg):
              ds.pixel_array
  
@@ -566,7 +575,7 @@ Description: Several data files need to be downloaded which is not possible at p
      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:
+@@ -474,6 +481,8 @@ class TestPillowHandler_JPEG2K:
          ref = ds.pixel_array
          assert np.array_equal(arr, ref)
  
@@ -575,7 +584,7 @@ Description: Several data files need to be downloaded which is not possible at p
      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:
+@@ -486,6 +495,7 @@ class TestPillowHandler_JPEG2K:
          arr_14 = ds.pixel_array
          assert not np.array_equal(arr, arr_14)
  
@@ -583,7 +592,15 @@ Description: Several data files need to be downloaded which is not possible at p
      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:
+@@ -529,6 +539,7 @@ class TestPillowHandler_JPEG:
+         assert HAVE_PIL
+         assert PIL_HANDLER is not None
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_unsupported_syntax_raises(self):
+         """Test pixel_array raises exception for unsupported syntaxes."""
+         pydicom.config.pixel_data_handlers = [PIL_HANDLER]
+@@ -546,6 +557,7 @@ class TestPillowHandler_JPEG:
          assert data[0] == ds.file_meta.TransferSyntaxUID
          assert data[1] == ds.PatientName
  
@@ -591,7 +608,7 @@ Description: Several data files need to be downloaded which is not possible at p
      @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:
+@@ -564,6 +576,7 @@ class TestPillowHandler_JPEG:
          assert data[5] == arr.shape
          assert arr.dtype == data[6]
  
@@ -599,7 +616,7 @@ Description: Several data files need to be downloaded which is not possible at p
      @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:
+@@ -588,6 +601,7 @@ class TestPillowHandler_JPEG:
  
          assert np.array_equal(arr, ref)
  
@@ -607,7 +624,7 @@ Description: Several data files need to be downloaded which is not possible at p
      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:
+@@ -602,6 +616,7 @@ class TestPillowHandler_JPEG:
  
          assert "YBR_FULL_422" == ds.PhotometricInterpretation
  
@@ -615,7 +632,7 @@ Description: Several data files need to be downloaded which is not possible at p
      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:
+@@ -612,6 +627,7 @@ class TestPillowHandler_JPEG:
          with pytest.raises(NotImplementedError, match=msg):
              ds.pixel_array
  
@@ -623,7 +640,7 @@ Description: Several data files need to be downloaded which is not possible at p
      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:
+@@ -619,6 +635,7 @@ class TestPillowHandler_JPEG:
          with pytest.raises(NotImplementedError, match=msg):
              ds.pixel_array
  
@@ -2246,7 +2263,7 @@ Description: Several data files need to be downloaded which is not possible at p
      def test_encapsulate(self):
 --- a/pydicom/tests/test_encoders_pydicom.py
 +++ b/pydicom/tests/test_encoders_pydicom.py
-@@ -28,23 +28,23 @@ from pydicom.pixel_data_handlers.util im
+@@ -28,23 +28,25 @@ from pydicom.pixel_data_handlers.util im
  from pydicom.uid import RLELossless
  
  
@@ -2272,6 +2289,7 @@ Description: Several data files need to be downloaded which is not possible at p
 +## 8/8-bit, 1 sample/pixel, 1 frame
 +#EXPL_8_1_1F = get_testdata_file("OBXXXX1A.dcm")
 +#RLE_8_1_1F = get_testdata_file("OBXXXX1A_rle.dcm")
++RLE_8_1_1F = None
 +## 8/8-bit, 3 sample/pixel, 1 frame
 +#EXPL_8_3_1F = get_testdata_file("SC_rgb.dcm")
 +## 8/8-bit, 3 sample/pixel, 2 frame
@@ -2280,6 +2298,7 @@ Description: Several data files need to be downloaded which is not possible at p
 +#EXPL_16_1_1F = get_testdata_file("MR_small.dcm")
 +## 16/16-bit, 3 sample/pixel, 1 frame
 +#EXPL_16_3_1F = get_testdata_file("SC_rgb_16bit.dcm")
++EXPL_16_3_1F = None
 +## 32/32-bit, 1 sample/pixel, 1 frame
 +#EXPL_32_1_1F = get_testdata_file("rtdose_1frame.dcm")
 +## 32/32-bit, 3 sample/pixel, 1 frame
@@ -2287,7 +2306,7 @@ Description: Several data files need to be downloaded which is not possible at p
  
  
  # Tests for RLE encoding
-@@ -107,6 +107,7 @@ class TestEncodeRow:
+@@ -107,6 +109,7 @@ class TestEncodeRow:
          assert output == _encode_row(src)
  
  
@@ -2295,7 +2314,7 @@ Description: Several data files need to be downloaded which is not possible at p
  @pytest.mark.skipif(not HAVE_NP, reason="Numpy not available")
  class TestEncodeFrame:
      """Tests for rle_handler._encode_frame."""
-@@ -139,6 +140,7 @@ class TestEncodeFrame:
+@@ -139,6 +142,7 @@ class TestEncodeFrame:
  
          assert np.array_equal(ref, arr)
  
@@ -2303,7 +2322,7 @@ Description: Several data files need to be downloaded which is not possible at p
      def test_cycle_8bit_3sample(self):
          """Test an encode/decode cycle for 8-bit 3 sample/pixel."""
          ds = dcmread(EXPL_8_3_1F)
-@@ -176,6 +178,7 @@ class TestEncodeFrame:
+@@ -176,6 +180,7 @@ class TestEncodeFrame:
  
          assert np.array_equal(ref, arr)
  
@@ -2311,7 +2330,7 @@ Description: Several data files need to be downloaded which is not possible at p
      def test_cycle_16bit_3sample(self):
          """Test an encode/decode cycle for 16-bit 3 sample/pixel."""
          ds = dcmread(EXPL_16_3_1F)
-@@ -351,6 +354,7 @@ class TestEncodeFrame:
+@@ -351,6 +356,7 @@ class TestEncodeFrame:
  
  class TestEncodeSegment:
      """Tests for rle_handler._encode_segment."""
@@ -2319,7 +2338,15 @@ Description: Several data files need to be downloaded which is not possible at p
      @pytest.mark.skipif(not HAVE_NP, reason="Numpy not available")
      def test_one_row(self):
          """Test encoding data that contains only a single row."""
-@@ -404,6 +408,7 @@ class TestRLEEncodeFrame:
+@@ -372,6 +378,7 @@ class TestEncodeSegment:
+         assert ds.Columns == len(redecoded)
+         assert decoded[:ds.Columns] == redecoded
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_cycle(self):
+         """Test the decoded data remains the same after encoding/decoding."""
+         ds = dcmread(RLE_8_1_1F)
+@@ -404,6 +411,7 @@ class TestRLEEncodeFrame:
          with pytest.raises(ValueError, match=msg):
              rle_encode_frame(arr)
  
@@ -2327,6 +2354,22 @@ Description: Several data files need to be downloaded which is not possible at p
      def test_encoding_multiple_frames_raises(self):
          """Test encoding multiple framed pixel data raises exception."""
          # Note: only works with multi-sample data
+@@ -418,6 +426,7 @@ class TestRLEEncodeFrame:
+         with pytest.raises(ValueError, match=msg):
+             rle_encode_frame(ds.pixel_array)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_functional(self):
+         """Test function works OK."""
+         ds = dcmread(EXPL_16_3_1F)
+@@ -436,6 +445,7 @@ class TestRLEEncodeFrame:
+ 
+         assert np.array_equal(ref, arr)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_big_endian_arr(self):
+         """Test using a big endian array works."""
+         ds = dcmread(EXPL_16_3_1F)
 --- a/pydicom/tests/test_filewriter.py
 +++ b/pydicom/tests/test_filewriter.py
 @@ -218,6 +218,7 @@ class TestWriteFile:
@@ -2355,7 +2398,74 @@ Description: Several data files need to be downloaded which is not possible at p
          and vice verse."""
 --- a/pydicom/tests/test_handler_util.py
 +++ b/pydicom/tests/test_handler_util.py
-@@ -590,6 +590,7 @@ class TestNumpy_ConvertColourSpace:
+@@ -36,32 +36,32 @@ from pydicom.uid import (ExplicitVRLittl
+                          UncompressedPixelTransferSyntaxes)
+ 
+ 
+-# PAL: PALETTE COLOR Photometric Interpretation
+-# SEG: Segmented Palette Color
+-# SUP: Supplemental Palette Color
+-# LE, BE: little endian, big endian encoding
+-# 8/8, 1 sample/pixel, 1 frame
+-PAL_08_256_0_16_1F = get_testdata_file("OBXXXX1A.dcm")
+-PAL_08_200_0_16_1F = get_testdata_file("OT-PAL-8-face.dcm")
+-# 8/8, 1 sample/pixel, 2 frame
+-PAL_08_256_0_16_2F = get_testdata_file("OBXXXX1A_2frame.dcm")
+-# PALETTE COLOR with 16-bit LUTs (no indirect segments)
+-PAL_SEG_LE_16_1F = get_testdata_file("gdcm-US-ALOKA-16.dcm")
+-PAL_SEG_BE_16_1F = get_testdata_file("gdcm-US-ALOKA-16_big.dcm")
+-# Supplemental palette colour + VOI windowing
+-SUP_16_16_2F = get_testdata_file("eCT_Supplemental.dcm")
+-# 8 bit, 3 samples/pixel, 1 and 2 frame datasets
+-# RGB colorspace, uncompressed
+-RGB_8_3_1F = get_testdata_file("SC_rgb.dcm")
+-RGB_8_3_2F = get_testdata_file("SC_rgb_2frame.dcm")
+-# MOD: Modality LUT
+-# SEQ: Modality LUT Sequence
+-MOD_16 = get_testdata_file("CT_small.dcm")
+-MOD_16_SEQ = get_testdata_file("mlut_18.dcm")
+-# VOI: VOI LUT Sequence
+-# WIN: Windowing operation
+-WIN_12_1F = get_testdata_file("MR-SIEMENS-DICOM-WithOverlays.dcm")
+-VOI_08_1F = get_testdata_file("vlut_04.dcm")
++## PAL: PALETTE COLOR Photometric Interpretation
++## SEG: Segmented Palette Color
++## SUP: Supplemental Palette Color
++## LE, BE: little endian, big endian encoding
++## 8/8, 1 sample/pixel, 1 frame
++#PAL_08_256_0_16_1F = get_testdata_file("OBXXXX1A.dcm")
++#PAL_08_200_0_16_1F = get_testdata_file("OT-PAL-8-face.dcm")
++## 8/8, 1 sample/pixel, 2 frame
++#PAL_08_256_0_16_2F = get_testdata_file("OBXXXX1A_2frame.dcm")
++## PALETTE COLOR with 16-bit LUTs (no indirect segments)
++#PAL_SEG_LE_16_1F = get_testdata_file("gdcm-US-ALOKA-16.dcm")
++#PAL_SEG_BE_16_1F = get_testdata_file("gdcm-US-ALOKA-16_big.dcm")
++## Supplemental palette colour + VOI windowing
++#SUP_16_16_2F = get_testdata_file("eCT_Supplemental.dcm")
++## 8 bit, 3 samples/pixel, 1 and 2 frame datasets
++## RGB colorspace, uncompressed
++#RGB_8_3_1F = get_testdata_file("SC_rgb.dcm")
++#RGB_8_3_2F = get_testdata_file("SC_rgb_2frame.dcm")
++## MOD: Modality LUT
++## SEQ: Modality LUT Sequence
++#MOD_16 = get_testdata_file("CT_small.dcm")
++#MOD_16_SEQ = get_testdata_file("mlut_18.dcm")
++## VOI: VOI LUT Sequence
++## WIN: Windowing operation
++#WIN_12_1F = get_testdata_file("MR-SIEMENS-DICOM-WithOverlays.dcm")
++#VOI_08_1F = get_testdata_file("vlut_04.dcm")
+ 
+ 
+ # Tests with Numpy unavailable
+@@ -556,6 +556,7 @@ class TestNumpy_ConvertColourSpace:
+         arr = np.ones((2, 3))
+         assert np.array_equal(arr, convert_color_space(arr, current, desired))
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_rgb_ybr_rgb_single_frame(self):
+         """Test round trip conversion of single framed pixel data."""
+         ds = dcmread(RGB_8_3_1F)
+@@ -590,6 +591,7 @@ class TestNumpy_ConvertColourSpace:
          assert np.allclose(rgb, arr, atol=1)
          assert rgb.shape == arr.shape
  
@@ -2363,7 +2473,23 @@ Description: Several data files need to be downloaded which is not possible at p
      def test_rgb_ybr_rgb_multi_frame(self):
          """Test round trip conversion of multi-framed pixel data."""
          ds = dcmread(RGB_8_3_2F)
-@@ -836,6 +837,7 @@ class TestNumpy_ModalityLUT:
+@@ -637,6 +639,7 @@ class TestNumpy_ConvertColourSpace:
+         assert np.allclose(rgb, arr, atol=1)
+         assert rgb.shape == arr.shape
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_frame_by_frame(self):
+         """Test processing frame-by-frame."""
+         ds = dcmread(RGB_8_3_2F)
+@@ -816,6 +819,7 @@ class TestGetExpectedLength:
+         assert length[2] == get_expected_length(ds, unit='bytes')
+ 
+ 
++ at pytest.mark.skip("When building a Debian package we can not download anything")
+ @pytest.mark.skipif(not HAVE_NP, reason="Numpy is not available")
+ class TestNumpy_ModalityLUT:
+     """Tests for util.apply_modality_lut()."""
+@@ -836,6 +840,7 @@ class TestNumpy_ModalityLUT:
          out = apply_modality_lut(arr, ds)
          assert np.array_equal(arr * 2.5 - 2048, out)
  
@@ -2371,7 +2497,7 @@ Description: Several data files need to be downloaded which is not possible at p
      def test_lut_sequence(self):
          """Test the LUT Sequence transform."""
          ds = dcmread(MOD_16_SEQ)
-@@ -863,6 +865,7 @@ class TestNumpy_ModalityLUT:
+@@ -863,6 +868,7 @@ class TestNumpy_ModalityLUT:
          assert 52428 == out[228, 385]
          assert 58974 == out[291, 385]
  
@@ -2379,7 +2505,15 @@ Description: Several data files need to be downloaded which is not possible at p
      def test_lut_sequence_zero_entries(self):
          """Test that 0 entries is interpreted correctly."""
          # LUTDescriptor[0] of 0 -> 65536, but only 4096 entries so any
-@@ -934,6 +937,7 @@ class TestNumpy_PaletteColor:
+@@ -890,6 +896,7 @@ class TestNumpy_ModalityLUT:
+         out = apply_modality_lut(arr, ds)
+         assert arr is out
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_lutdata_ow(self):
+         """Test LUT Data with VR OW."""
+         ds = dcmread(MOD_16_SEQ)
+@@ -934,6 +941,7 @@ class TestNumpy_PaletteColor:
          if os.path.exists(self.n_palette):
              os.rename(self.n_palette, self.o_palette)
  
@@ -2387,7 +2521,7 @@ Description: Several data files need to be downloaded which is not possible at p
      def test_neither_ds_nor_palette_raises(self):
          """Test missing `ds` and `palette` raise an exception."""
          ds = dcmread(PAL_08_256_0_16_1F)
-@@ -941,6 +945,7 @@ class TestNumpy_PaletteColor:
+@@ -941,6 +949,7 @@ class TestNumpy_PaletteColor:
          with pytest.raises(ValueError, match=msg):
              apply_color_lut(ds.pixel_array)
  
@@ -2395,7 +2529,7 @@ Description: Several data files need to be downloaded which is not possible at p
      def test_palette_unknown_raises(self):
          """Test using an unknown `palette` raise an exception."""
          ds = dcmread(PAL_08_256_0_16_1F)
-@@ -954,6 +959,7 @@ class TestNumpy_PaletteColor:
+@@ -954,6 +963,7 @@ class TestNumpy_PaletteColor:
          with pytest.raises(ValueError, match=msg):
              apply_color_lut(ds.pixel_array, palette='1.2.840.10008.1.1')
  
@@ -2403,7 +2537,31 @@ Description: Several data files need to be downloaded which is not possible at p
      def test_palette_unavailable_raises(self):
          """Test using a missing `palette` raise an exception."""
          os.rename(self.o_palette, self.n_palette)
-@@ -999,6 +1005,7 @@ class TestNumpy_PaletteColor:
+@@ -962,6 +972,7 @@ class TestNumpy_PaletteColor:
+         with pytest.raises(IndexError, match=msg):
+             apply_color_lut(ds.pixel_array, palette='PET')
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_supplemental_raises(self):
+         """Test that supplemental palette color LUT raises exception."""
+         ds = dcmread(SUP_16_16_2F)
+@@ -972,6 +983,7 @@ class TestNumpy_PaletteColor:
+         with pytest.raises(ValueError, match=msg):
+             apply_color_lut(ds.pixel_array, ds)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_invalid_bit_depth_raises(self):
+         """Test that an invalid bit depth raises an exception."""
+         ds = dcmread(PAL_08_256_0_16_1F)
+@@ -980,6 +992,7 @@ class TestNumpy_PaletteColor:
+         with pytest.raises(TypeError, match=msg):
+             apply_color_lut(ds.pixel_array, ds)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_invalid_lut_bit_depth_raises(self):
+         """Test that an invalid LUT bit depth raises an exception."""
+         ds = dcmread(PAL_08_256_0_16_1F)
+@@ -999,6 +1012,7 @@ class TestNumpy_PaletteColor:
          with pytest.raises(ValueError, match=msg):
              apply_color_lut(ds.pixel_array, ds)
  
@@ -2411,7 +2569,15 @@ Description: Several data files need to be downloaded which is not possible at p
      def test_unequal_lut_length_raises(self):
          """Test that an unequal LUT lengths raise an exception."""
          ds = dcmread(PAL_08_256_0_16_1F)
-@@ -1017,6 +1024,7 @@ class TestNumpy_PaletteColor:
+@@ -1009,6 +1023,7 @@ class TestNumpy_PaletteColor:
+         with pytest.raises(ValueError, match=msg):
+             apply_color_lut(ds.pixel_array, ds)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_no_palette_color(self):
+         """Test that an unequal LUT lengths raise an exception."""
+         ds = dcmread(PAL_08_256_0_16_1F)
+@@ -1017,6 +1032,7 @@ class TestNumpy_PaletteColor:
          with pytest.raises(ValueError, match=msg):
              apply_color_lut(ds.pixel_array, ds)
  
@@ -2419,7 +2585,23 @@ Description: Several data files need to be downloaded which is not possible at p
      def test_uint08_16(self):
          """Test uint8 Pixel Data with 16-bit LUT entries."""
          ds = dcmread(PAL_08_200_0_16_1F, force=True)
-@@ -1091,6 +1099,7 @@ class TestNumpy_PaletteColor:
+@@ -1037,6 +1053,7 @@ class TestNumpy_PaletteColor:
+         # original `arr` is unchanged
+         assert np.array_equal(orig, arr)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_uint08_16_2frame(self):
+         """Test 2 frame uint8 Pixel Data with 16-bit LUT entries."""
+         ds = dcmread(PAL_08_256_0_16_2F)
+@@ -1070,6 +1087,7 @@ class TestNumpy_PaletteColor:
+         # original `arr` is unchanged
+         assert np.array_equal(orig, arr)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_uint16_16_segmented_litle(self):
+         """Test uint16 Pixel Data with 16-bit LUT entries."""
+         ds = dcmread(PAL_SEG_LE_16_1F)
+@@ -1091,6 +1109,7 @@ class TestNumpy_PaletteColor:
  
          assert (orig == arr).all()
  
@@ -2427,9 +2609,169 @@ Description: Several data files need to be downloaded which is not possible at p
      def test_uint16_16_segmented_big(self):
          """Test big endian uint16 Pixel Data with 16-bit LUT entries."""
          ds = dcmread(PAL_SEG_BE_16_1F)
+@@ -1110,6 +1129,7 @@ class TestNumpy_PaletteColor:
+         assert [10280, 11565, 16705] == list(rgb[479, 320, :])
+         assert [10280, 11565, 16705] == list(rgb[479, 639, :])
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_16_allocated_8_entries(self):
+         """Test LUT with 8-bit entries in 16 bits allocated."""
+         ds = dcmread(PAL_08_200_0_16_1F, force=True)
+@@ -1131,6 +1151,7 @@ class TestNumpy_PaletteColor:
+         assert np.array_equal(arr, out[:, :, 1])
+         assert np.array_equal(arr, out[:, :, 2])
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_alpha(self):
+         """Test applying a color palette with an alpha channel."""
+         ds = dcmread(PAL_08_256_0_16_1F)
+@@ -1141,6 +1162,7 @@ class TestNumpy_PaletteColor:
+         assert 32768 == rgba[:, :, 3][0, 0]
+         assert (32768 == rgba[:, :, 3]).any()
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_well_known_palette(self):
+         """Test using a well-known palette."""
+         ds = dcmread(PAL_08_256_0_16_1F)
+@@ -1174,6 +1196,7 @@ class TestNumpy_PaletteColor:
+         uid = apply_color_lut(arr, palette='1.2.840.10008.1.5.2')
+         assert np.array_equal(uid, rgb)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_first_map_positive(self):
+         """Test a positive first mapping value."""
+         ds = dcmread(PAL_08_200_0_16_1F, force=True)
+@@ -1192,6 +1215,7 @@ class TestNumpy_PaletteColor:
+         assert [50944, 16384, 27904] == list(rgb[arr == 149][0])
+         assert ([50944, 16384, 27904] == rgb[arr == 149]).all()
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_first_map_negative(self):
+         """Test a positive first mapping value."""
+         ds = dcmread(PAL_08_200_0_16_1F, force=True)
+@@ -1210,6 +1234,7 @@ class TestNumpy_PaletteColor:
+         assert [60160, 25600, 37376] == list(rgb[arr == 130][0])
+         assert ([60160, 25600, 37376] == rgb[arr == 130]).all()
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_unchanged(self):
+         """Test dataset with no LUT is unchanged."""
+         # Regression test for #1068
+@@ -1449,6 +1474,7 @@ class TestNumpy_ExpandSegmentedLUT:
+ @pytest.mark.skipif(not HAVE_NP, reason="Numpy is not available")
+ class TestNumpy_ApplyWindowing:
+     """Tests for util.apply_windowing()."""
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_window_single_view(self):
+         """Test windowing with a single view."""
+         # 12-bit unsigned
+@@ -1466,6 +1492,7 @@ class TestNumpy_ApplyWindowing:
+         out = apply_windowing(arr, ds)
+         assert 3046.6 == pytest.approx(out[326, 130], abs=0.1)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_window_multi_view(self):
+         """Test windowing with multiple views."""
+         ds = dcmread(WIN_12_1F)
+@@ -1708,6 +1735,7 @@ class TestNumpy_ApplyWindowing:
+             )
+         )
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_window_multi_frame(self):
+         """Test windowing with a multiple frames."""
+         ds = dcmread(WIN_12_1F)
+@@ -1728,6 +1756,7 @@ class TestNumpy_ApplyWindowing:
+         assert 3046.6 == pytest.approx(out[0, 326, 130], abs=0.1)
+         assert 4095.0 == pytest.approx(out[1, 326, 130], abs=0.1)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_window_rescale(self):
+         """Test windowing after a rescale operation."""
+         ds = dcmread(WIN_12_1F)
+@@ -1759,6 +1788,7 @@ class TestNumpy_ApplyWindowing:
+         assert 4455.6 == pytest.approx(out[326, 130], abs=0.1)
+         assert 4914.0 == pytest.approx(out[316, 481], abs=0.1)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_window_modality_lut(self):
+         """Test windowing after a modality LUT operation."""
+         ds = dcmread(MOD_16_SEQ)
+@@ -1789,6 +1819,7 @@ class TestNumpy_ApplyWindowing:
+         assert 65535 == out.max()
+         assert 0 == out.min()
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_window_bad_photometric_interp(self):
+         """Test bad photometric interpretation raises exception."""
+         ds = dcmread(WIN_12_1F)
+@@ -1797,6 +1828,7 @@ class TestNumpy_ApplyWindowing:
+         with pytest.raises(ValueError, match=msg):
+             apply_windowing(ds.pixel_array, ds)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_window_bad_parameters(self):
+         """Test bad windowing parameters raise exceptions."""
+         ds = dcmread(WIN_12_1F)
+@@ -1821,6 +1853,7 @@ class TestNumpy_ApplyWindowing:
+         with pytest.raises(ValueError, match=msg):
+             apply_windowing(ds.pixel_array, ds)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_window_bad_index(self, no_numpy_use):
+         """Test windowing with a bad view index."""
+         ds = dcmread(WIN_12_1F)
+@@ -1839,6 +1872,7 @@ class TestNumpy_ApplyWindowing:
+         out = apply_windowing(arr, ds)
+         assert [-128, -127, -1, 0, 1, 126, 127] == out.tolist()
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_rescale_empty(self):
+         """Test RescaleSlope and RescaleIntercept being empty."""
+         ds = dcmread(WIN_12_1F)
+@@ -1855,6 +1889,7 @@ class TestNumpy_ApplyWindowing:
+         assert 4095.0 == pytest.approx(out[316, 481], abs=0.1)
+ 
+ 
++ at pytest.mark.skip("When building a Debian package we can not download anything")
+ @pytest.mark.skipif(not HAVE_NP, reason="Numpy is not available")
+ class TestNumpy_ApplyVOI:
+     """Tests for util.apply_voi()."""
+@@ -1884,6 +1919,7 @@ class TestNumpy_ApplyVOI:
+         assert 45746 == out[186, 389]
+         assert 65535 == out[129, 79]
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_voi_multi_view(self):
+         """Test VOI LUT with multiple views."""
+         ds = dcmread(VOI_08_1F)
+@@ -1915,6 +1951,7 @@ class TestNumpy_ApplyVOI:
+         assert 19789 == out1[186, 389]
+         assert 0 == out1[129, 79]
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_voi_multi_frame(self):
+         """Test VOI with a multiple frames."""
+         ds = dcmread(VOI_08_1F)
+@@ -1936,6 +1973,7 @@ class TestNumpy_ApplyVOI:
+         assert 19789 == out[1, 186, 389]
+         assert 0 == out[1, 129, 79]
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_voi_zero_entries(self):
+         """Test that 0 entries is interpreted correctly."""
+         ds = dcmread(VOI_08_1F)
+@@ -2008,6 +2046,7 @@ class TestNumpy_ApplyVOI:
+         assert 'uint16' == out.dtype
+         assert [0, 0, 32768, 0, 65535] == out.tolist()
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_voi_bad_depth(self):
+         """Test bad LUT depth raises exception."""
+         ds = dcmread(VOI_08_1F)
 --- a/pydicom/tests/test_numpy_pixel_data.py
 +++ b/pydicom/tests/test_numpy_pixel_data.py
-@@ -60,91 +60,91 @@ try:
+@@ -60,91 +60,97 @@ try:
  except ImportError:
      NP_HANDLER = None
  
@@ -2517,12 +2859,14 @@ Description: Several data files need to be downloaded which is not possible at p
 +## 8/8, 1 sample/pixel, 1 frame
 +#DEFL_8_1_1F = get_testdata_file("image_dfl.dcm")
 +#EXPL_8_1_1F = get_testdata_file("OBXXXX1A.dcm")
++EXPL_8_1_1F = None
 +#EXPB_8_1_1F = get_testdata_file("OBXXXX1A_expb.dcm")
 +## 8/8, 1 sample/pixel, 2 frame
 +#EXPL_8_1_2F = get_testdata_file("OBXXXX1A_2frame.dcm")
 +#EXPB_8_1_2F = get_testdata_file("OBXXXX1A_expb_2frame.dcm")
 +## 8/8, 3 sample/pixel, 1 frame
 +#EXPL_8_3_1F = get_testdata_file("SC_rgb.dcm")
++EXPL_8_3_1F = None
 +#EXPB_8_3_1F = get_testdata_file("SC_rgb_expb.dcm")
 +## 8/8, 3 samples/pixel, 1 frame, 3 x 3
 +#EXPL_8_3_1F_ODD = get_testdata_file('SC_rgb_small_odd.dcm')
@@ -2536,14 +2880,17 @@ Description: Several data files need to be downloaded which is not possible at p
 +## 16/16, 1 sample/pixel, 1 frame
 +#IMPL_16_1_1F = get_testdata_file("MR_small_implicit.dcm")
 +#EXPL_16_1_1F = get_testdata_file("MR_small.dcm")
++EXPL_16_1_1F = None
 +#EXPB_16_1_1F = get_testdata_file("MR_small_expb.dcm")
 +## Pixel Data with 128 bytes trailing padding
 +#EXPL_16_1_1F_PAD = get_testdata_file("MR_small_padded.dcm")
 +## 16/12, 1 sample/pixel, 10 frame
 +#EXPL_16_1_10F = get_testdata_file("emri_small.dcm")
++EXPL_16_1_10F = None
 +#EXPB_16_1_10F = get_testdata_file("emri_small_big_endian.dcm")
 +## 16/16, 3 sample/pixel, 1 frame
 +#EXPL_16_3_1F = get_testdata_file("SC_rgb_16bit.dcm")
++EXPL_16_3_1F = None
 +#EXPB_16_3_1F = get_testdata_file("SC_rgb_expb_16bit.dcm")
 +## 16/16, 3 sample/pixel, 2 frame
 +#EXPL_16_3_2F = get_testdata_file("SC_rgb_16bit_2frame.dcm")
@@ -2553,6 +2900,7 @@ Description: Several data files need to be downloaded which is not possible at p
 +#EXPB_32_1_1F = get_testdata_file("rtdose_expb_1frame.dcm")
 +## 32/32, 1 sample/pixel, 15 frame
 +#IMPL_32_1_15F = get_testdata_file("rtdose.dcm")
++IMPL_32_1_15F = None
 +#EXPB_32_1_15F = get_testdata_file("rtdose_expb.dcm")
 +## 32/32, 3 sample/pixel, 1 frame
 +#EXPL_32_3_1F = get_testdata_file("SC_rgb_32bit.dcm")
@@ -2597,7 +2945,7 @@ Description: Several data files need to be downloaded which is not possible at p
  
  
  # Transfer Syntaxes (non-retired + Explicit VR Big Endian)
-@@ -166,15 +166,15 @@ def test_unsupported_syntaxes():
+@@ -166,15 +172,15 @@ def test_unsupported_syntaxes():
  
  
  REFERENCE_DATA_UNSUPPORTED = [
@@ -2622,7 +2970,15 @@ Description: Several data files need to be downloaded which is not possible at p
  ]
  
  SUPPORTED_HANDLER_NAMES = (
-@@ -359,6 +359,7 @@ class TestNumpy_NoNumpyHandler:
+@@ -337,6 +343,7 @@ class TestNumpy_NoNumpyHandler:
+         # We numpy handler should still be available
+         assert NP_HANDLER is not None
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_can_access_supported_dataset(self):
+         """Test that we can read and access elements in dataset."""
+         # Explicit little
+@@ -359,6 +366,7 @@ class TestNumpy_NoNumpyHandler:
          assert 'CompressedSamples^MR1' == ds.PatientName
          assert 8192 == len(ds.PixelData)
  
@@ -2630,7 +2986,15 @@ Description: Several data files need to be downloaded which is not possible at p
      @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."""
-@@ -377,42 +378,42 @@ class TestNumpy_NoNumpyHandler:
+@@ -366,6 +374,7 @@ class TestNumpy_NoNumpyHandler:
+         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")
+     def test_pixel_array_raises(self):
+         """Test pixel_array raises exception for all syntaxes."""
+         ds = dcmread(EXPL_16_1_1F)
+@@ -377,42 +386,42 @@ class TestNumpy_NoNumpyHandler:
  
  # Numpy and the numpy handler are available
  MATCHING_DATASETS = [
@@ -2704,7 +3068,31 @@ Description: Several data files need to be downloaded which is not possible at p
  ]
  
  
-@@ -482,6 +483,7 @@ class TestNumpy_NumpyHandler:
+@@ -434,6 +443,7 @@ class TestNumpy_NumpyHandler:
+         assert HAVE_NP
+         assert NP_HANDLER is not None
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_unsupported_syntax_raises(self):
+         """Test pixel_array raises exception for unsupported syntaxes."""
+         ds = dcmread(EXPL_16_1_1F)
+@@ -443,6 +453,7 @@ class TestNumpy_NumpyHandler:
+             with pytest.raises((NotImplementedError, RuntimeError)):
+                 ds.pixel_array
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_dataset_pixel_array_handler_needs_convert(self):
+         """Test Dataset.pixel_array when converting to RGB."""
+         ds = dcmread(EXPL_8_3_1F)
+@@ -471,6 +482,7 @@ class TestNumpy_NumpyHandler:
+         # Reset
+         NP_HANDLER.needs_to_convert_to_RGB = orig_fn
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_dataset_pixel_array_no_pixels(self):
+         """Test good exception message if no pixel data in dataset."""
+         ds = dcmread(NO_PIXEL)
+@@ -482,6 +494,7 @@ class TestNumpy_NumpyHandler:
          with pytest.raises(AttributeError, match=msg):
              ds.pixel_array
  
@@ -2712,7 +3100,7 @@ Description: Several data files need to be downloaded which is not possible at p
      @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."""
-@@ -489,6 +491,7 @@ class TestNumpy_NumpyHandler:
+@@ -489,6 +502,7 @@ class TestNumpy_NumpyHandler:
          assert data[0] == ds.file_meta.TransferSyntaxUID
          assert data[1] == ds.PatientName
  
@@ -2720,7 +3108,7 @@ Description: Several data files need to be downloaded which is not possible at p
      def test_pixel_array_8bit_un_signed(self):
          """Test pixel_array for 8-bit unsigned -> signed data."""
          ds = dcmread(EXPL_8_1_1F)
-@@ -504,6 +507,7 @@ class TestNumpy_NumpyHandler:
+@@ -504,6 +518,7 @@ class TestNumpy_NumpyHandler:
          assert (1, -10, 1) == tuple(arr[300, 491:494])
          assert 0 == arr[-1].min() == arr[-1].max()
  
@@ -2728,7 +3116,7 @@ Description: Several data files need to be downloaded which is not possible at p
      @pytest.mark.parametrize("handler_name", SUPPORTED_HANDLER_NAMES)
      def test_decompress_using_handler(self, handler_name):
          """Test different possibilities for the numpy handler name."""
-@@ -514,6 +518,7 @@ class TestNumpy_NumpyHandler:
+@@ -514,6 +529,7 @@ class TestNumpy_NumpyHandler:
          assert (1, 246, 1) == tuple(ds.pixel_array[300, 491:494])
          assert 0 == ds.pixel_array[-1].min() == ds.pixel_array[-1].max()
  
@@ -2736,7 +3124,15 @@ Description: Several data files need to be downloaded which is not possible at p
      def test_pixel_array_16bit_un_signed(self):
          """Test pixel_array for 16-bit unsigned -> signed."""
          ds = dcmread(EXPL_16_3_1F)
-@@ -543,6 +548,7 @@ class TestNumpy_NumpyHandler:
+@@ -528,6 +544,7 @@ class TestNumpy_NumpyHandler:
+         assert -1 == arr[0, :, 0].min() == arr[0, :, 0].max()
+         assert -32640 == arr[50, :, 0].min() == arr[50, :, 0].max()
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_pixel_array_32bit_un_signed(self):
+         """Test pixel_array for 32-bit unsigned -> signed."""
+         ds = dcmread(EXPL_32_3_1F)
+@@ -543,6 +560,7 @@ class TestNumpy_NumpyHandler:
          assert -2139062144 == arr[50, :, 0].min() == arr[50, :, 0].max()
  
      # Endian independent datasets
@@ -2744,7 +3140,39 @@ Description: Several data files need to be downloaded which is not possible at p
      def test_8bit_1sample_1frame(self):
          """Test pixel_array for 8-bit, 1 sample/pixel, 1 frame."""
          # Check supported syntaxes
-@@ -640,6 +646,7 @@ class TestNumpy_NumpyHandler:
+@@ -558,6 +576,7 @@ class TestNumpy_NumpyHandler:
+             assert (1, 246, 1) == tuple(arr[300, 491:494])
+             assert 0 == arr[-1].min() == arr[-1].max()
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_8bit_1sample_2frame(self):
+         """Test pixel_array for 8-bit, 1 sample/pixel, 2 frame."""
+         # Check supported syntaxes
+@@ -576,6 +595,7 @@ class TestNumpy_NumpyHandler:
+             # Frame 2 is frame 1 inverted
+             assert np.array_equal((2 ** ds.BitsAllocated - 1) - arr[1], arr[0])
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_8bit_3sample_1frame_odd_size(self):
+         """Test pixel_array for odd sized (3x3) pixel data."""
+         # Check supported syntaxes
+@@ -594,6 +614,7 @@ class TestNumpy_NumpyHandler:
+                 [158, 158, 158], [158, 158, 158], [158, 158, 158]
+             ]
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_8bit_3sample_1frame_ybr422(self):
+         """Test pixel_array for YBR_FULL_422 pixel data."""
+         ds = dcmread(EXPL_8_3_1F_YBR422)
+@@ -619,6 +640,7 @@ class TestNumpy_NumpyHandler:
+         assert (192, 128, 128) == tuple(arr[85, 50, :])
+         assert (255, 128, 128) == tuple(arr[95, 50, :])
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_8bit_3sample_1frame(self):
+         """Test pixel_array for 8-bit, 3 sample/pixel, 1 frame."""
+         # Check supported syntaxes
+@@ -640,6 +662,7 @@ class TestNumpy_NumpyHandler:
              assert (192, 192, 192) == tuple(arr[85, 50, :])
              assert (255, 255, 255) == tuple(arr[95, 50, :])
  
@@ -2752,7 +3180,7 @@ Description: Several data files need to be downloaded which is not possible at p
      def test_8bit_3sample_2frame(self):
          """Test pixel_array for 8-bit, 3 sample/pixel, 2 frame."""
          # Check supported syntaxes
-@@ -666,6 +673,7 @@ class TestNumpy_NumpyHandler:
+@@ -666,6 +689,7 @@ class TestNumpy_NumpyHandler:
              assert np.array_equal((2 ** ds.BitsAllocated - 1) - arr[1], arr[0])
  
      # Little endian datasets
@@ -2760,6 +3188,270 @@ Description: Several data files need to be downloaded which is not possible at p
      @pytest.mark.parametrize('fpath, data', REFERENCE_DATA_LITTLE)
      def test_properties(self, fpath, data):
          """Test dataset and pixel array properties are as expected."""
+@@ -694,6 +718,7 @@ class TestNumpy_NumpyHandler:
+             if size % 2:
+                 assert ds.PixelData[-1] == b'\x00'[0]
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_little_1bit_1sample_1frame(self):
+         """Test pixel_array for little 1-bit, 1 sample/pixel, 1 frame."""
+         # Check all little endian syntaxes
+@@ -712,6 +737,7 @@ class TestNumpy_NumpyHandler:
+             assert (0, 1, 1) == tuple(arr[254, 78:81])
+             assert (1, 0, 0, 1, 1, 0) == tuple(arr[254, 304:310])
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_little_1bit_1sample_3frame(self):
+         """Test pixel_array for little 1-bit, 1 sample/pixel, 3 frame."""
+         # Check all little endian syntaxes
+@@ -773,6 +799,7 @@ class TestNumpy_NumpyHandler:
+             ds.file_meta.TransferSyntaxUID = uid
+             arr = ds.pixel_array
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_little_16bit_1sample_1frame(self):
+         """Test pixel_array for little 16-bit, 1 sample/pixel, 1 frame."""
+         # Check all little endian syntaxes
+@@ -789,6 +816,7 @@ class TestNumpy_NumpyHandler:
+             # Last pixel
+             assert 862 == arr[-1, -1]
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_little_16bit_1sample_1frame_padded(self):
+         """Test with padded little 16-bit, 1 sample/pixel, 1 frame."""
+         ds = dcmread(EXPL_16_1_1F_PAD)
+@@ -823,6 +851,7 @@ class TestNumpy_NumpyHandler:
+         # Last pixel
+         assert 862 == arr[-1, -1]
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_little_16bit_1sample_10frame(self):
+         """Test pixel_array for little 16-bit, 1 sample/pixel, 10 frame."""
+         # Check all little endian syntaxes
+@@ -846,6 +875,7 @@ class TestNumpy_NumpyHandler:
+             assert (25, 4, 9) == tuple(arr[-1, 31, :3])
+             assert (227, 300, 147) == tuple(arr[-1, -1, -3:])
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_little_16bit_3sample_1frame(self):
+         """Test pixel_array for little 16-bit, 3 sample/pixel, 1 frame."""
+         # Check all little endian syntaxes
+@@ -867,6 +897,7 @@ class TestNumpy_NumpyHandler:
+             assert (49344, 49344, 49344) == tuple(arr[85, 50, :])
+             assert (65535, 65535, 65535) == tuple(arr[95, 50, :])
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_little_16bit_3sample_2frame(self):
+         """Test pixel_array for little 16-bit, 3 sample/pixel, 2 frame."""
+         # Check all little endian syntaxes
+@@ -891,6 +922,7 @@ class TestNumpy_NumpyHandler:
+             # Frame 2 is frame 1 inverted
+             assert np.array_equal((2 ** ds.BitsAllocated - 1) - arr[1], arr[0])
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_little_32bit_1sample_1frame(self):
+         """Test pixel_array for little 32-bit, 1 sample/pixel, 1 frame."""
+         # Check all little endian syntaxes
+@@ -905,6 +937,7 @@ class TestNumpy_NumpyHandler:
+             assert (1031000, 1029000, 1027000) == tuple(arr[4, 3:6])
+             assert (803000, 801000, 798000) == tuple(arr[-1, -3:])
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_little_32bit_1sample_15frame(self):
+         """Test pixel_array for little 32-bit, 1 sample/pixel, 15 frame."""
+         # Check all little endian syntaxes
+@@ -928,6 +961,7 @@ class TestNumpy_NumpyHandler:
+             assert (1031000, 1031000, 1031000) == tuple(arr[-1, 4, 3:6])
+             assert (801000, 800000, 799000) == tuple(arr[-1, -1, -3:])
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_little_32bit_3sample_1frame(self):
+         """Test pixel_array for little 32-bit, 3 sample/pixel, 1 frame."""
+         # Check all little endian syntaxes
+@@ -949,6 +983,7 @@ class TestNumpy_NumpyHandler:
+             assert (3233857728, 3233857728, 3233857728) == tuple(ar[85, 50, :])
+             assert (4294967295, 4294967295, 4294967295) == tuple(ar[95, 50, :])
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_little_32bit_3sample_2frame(self):
+         """Test pixel_array for little 32-bit, 3 sample/pixel, 10 frame."""
+         # Check all little endian syntaxes
+@@ -985,6 +1020,7 @@ class TestNumpy_NumpyHandler:
+             # Frame 2 is frame 1 inverted
+             assert np.array_equal((2 ** ds.BitsAllocated - 1) - arr[1], arr[0])
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_little_32bit_float_1frame(self):
+         """Test pixel_array for float pixel data, 1 frame."""
+         ds = dcmread(IMPL_32_1_1F)
+@@ -1001,6 +1037,7 @@ class TestNumpy_NumpyHandler:
+             assert 1.44e-39 == pytest.approx(arr[4, 3], abs=0.01e-39)
+             assert 1.13e-39 == pytest.approx(arr[-1, -3], abs=0.01e-39)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_little_32bit_float_15frame(self):
+         """Test pixel_array for float pixel data, 15 frames."""
+         ds = dcmread(IMPL_32_1_15F)
+@@ -1017,6 +1054,7 @@ class TestNumpy_NumpyHandler:
+             assert 1.44e-39 == pytest.approx(arr[0, 4, 3], abs=0.01e-39)
+             assert 1.13e-39 == pytest.approx(arr[0, -1, -3], abs=0.01e-39)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_little_64bit_float_1frame(self):
+         """Test pixel_array for double float pixel data, 1 frame."""
+         ds = dcmread(IMPL_32_1_1F)
+@@ -1034,6 +1072,7 @@ class TestNumpy_NumpyHandler:
+             assert 1.80e-308 == pytest.approx(arr[4, 3], abs=0.01e-308)
+             assert 1.69e-308 == pytest.approx(arr[-1, -3], abs=0.01e-308)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_little_64bit_float_15frame(self):
+         """Test pixel_array for double float pixel data, 15 frames."""
+         ds = dcmread(IMPL_32_1_15F)
+@@ -1079,6 +1118,7 @@ class TestNumpy_NumpyHandler:
+ 
+         assert ds.pixel_array.max() == 1
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_read_only(self):
+         """Test for #717, returned array read-only."""
+         ds = dcmread(EXPL_8_1_1F)
+@@ -1093,6 +1133,7 @@ class TestNumpy_NumpyHandler:
+ @pytest.mark.skipif(not HAVE_NP, reason='Numpy is not available')
+ class TestNumpy_GetPixelData:
+     """Tests for numpy_handler.get_pixeldata with numpy."""
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_no_pixel_data_raises(self):
+         """Test get_pixeldata raises if dataset has no PixelData."""
+         ds = dcmread(EXPL_16_1_1F)
+@@ -1108,6 +1149,7 @@ class TestNumpy_GetPixelData:
+         with pytest.raises(AttributeError, match=msg):
+             get_pixeldata(ds)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_missing_required_elem_pixel_data_monochrome(self):
+         """Tet get_pixeldata raises if dataset missing required element."""
+         required_attrs = (
+@@ -1129,6 +1171,7 @@ class TestNumpy_GetPixelData:
+             with pytest.raises(AttributeError, match=msg):
+                 get_pixeldata(ds)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_missing_required_elem_pixel_data_color(self):
+         """Tet get_pixeldata raises if dataset missing required element."""
+         ds = dcmread(EXPL_8_3_1F)
+@@ -1141,6 +1184,7 @@ class TestNumpy_GetPixelData:
+         with pytest.raises(AttributeError, match=msg):
+             get_pixeldata(ds)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_missing_conditionally_required_elem_pixel_data_color(self):
+         """Tet get_pixeldata raises if dataset missing required element."""
+         ds = dcmread(EXPL_8_3_1F)
+@@ -1153,6 +1197,7 @@ class TestNumpy_GetPixelData:
+         with pytest.raises(AttributeError, match=msg):
+             get_pixeldata(ds)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_missing_required_elem_float_pixel_data_monochrome(self):
+         """Tet get_pixeldata raises if dataset missing required element."""
+         ds = dcmread(IMPL_32_1_1F)
+@@ -1166,6 +1211,7 @@ class TestNumpy_GetPixelData:
+         with pytest.raises(AttributeError, match=msg):
+             get_pixeldata(ds)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_unknown_pixel_representation_raises(self):
+         """Test get_pixeldata raises if unsupported PixelRepresentation."""
+         ds = dcmread(EXPL_16_1_1F)
+@@ -1174,6 +1220,7 @@ class TestNumpy_GetPixelData:
+                            match=r"value of '2' for '\(0028,0103"):
+             get_pixeldata(ds)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_unsupported_syntaxes_raises(self):
+         """Test get_pixeldata raises if unsupported Transfer Syntax."""
+         ds = dcmread(EXPL_16_1_1F)
+@@ -1182,6 +1229,7 @@ class TestNumpy_GetPixelData:
+                            match=' the transfer syntax is not supported'):
+             get_pixeldata(ds)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_bad_length_raises(self):
+         """Test bad pixel data length raises exception."""
+         ds = dcmread(EXPL_8_1_1F)
+@@ -1196,6 +1244,7 @@ class TestNumpy_GetPixelData:
+         with pytest.raises(ValueError, match=msg):
+             get_pixeldata(ds)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_missing_padding_warns(self):
+         """A warning shall be issued if the padding for odd data is missing."""
+         ds = dcmread(EXPL_8_3_1F_ODD)
+@@ -1205,6 +1254,7 @@ class TestNumpy_GetPixelData:
+         with pytest.warns(UserWarning, match=msg):
+             get_pixeldata(ds)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_change_photometric_interpretation(self):
+         """Test get_pixeldata changes PhotometricInterpretation if required."""
+ 
+@@ -1228,6 +1278,7 @@ class TestNumpy_GetPixelData:
+ 
+         NP_HANDLER.should_change_PhotometricInterpretation_to_RGB = orig_fn
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_array_read_only(self):
+         """Test returning a read only array for BitsAllocated > 8."""
+         ds = dcmread(EXPL_8_1_1F)
+@@ -1242,6 +1293,7 @@ class TestNumpy_GetPixelData:
+         with pytest.raises(ValueError, match="is read-only"):
+             arr[10] = 0
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_array_read_only_bit_packed(self):
+         """Test returning a read only array for BitsAllocated = 1."""
+         ds = dcmread(EXPL_1_1_1F)
+@@ -1251,6 +1303,7 @@ class TestNumpy_GetPixelData:
+         arr = get_pixeldata(ds, read_only=True)
+         assert arr.flags.writeable
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_ybr422_excess_padding(self):
+         """Test YBR data with excess padding."""
+         ds = dcmread(EXPL_8_3_1F_YBR422)
+@@ -1275,6 +1328,7 @@ class TestNumpy_GetPixelData:
+         assert (192, 128, 128) == tuple(arr[85, 50, :])
+         assert (255, 128, 128) == tuple(arr[95, 50, :])
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_ybr422_wrong_interpretation(self):
+         """Test YBR data with wrong Photometric Interpretation."""
+         ds = dcmread(EXPL_8_3_1F_YBR)
+@@ -1288,6 +1342,7 @@ class TestNumpy_GetPixelData:
+         # Resulting data will be nonsense but of correct shape
+         assert (100, 100, 3) == arr.shape
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_float_pixel_data(self):
+         """Test handling of Float Pixel Data."""
+         # Only 1 sample per pixel allowed
+@@ -1298,6 +1353,7 @@ class TestNumpy_GetPixelData:
+         arr = get_pixeldata(ds)
+         assert 'float32' == arr.dtype
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_double_float_pixel_data(self):
+         """Test handling of Double Float Pixel Data."""
+         # Only 1 sample per pixel allowed
+@@ -1409,6 +1465,7 @@ class TestNumpy_PackBits:
+         """Test packing data that isn't a full byte long."""
+         assert output == pack_bits(np.asarray(input), pad=False)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_functional(self):
+         """Test against a real dataset."""
+         ds = dcmread(EXPL_1_1_3F)
 --- a/pydicom/tests/test_encoders.py
 +++ b/pydicom/tests/test_encoders.py
 @@ -270,6 +270,7 @@ class TestEncoder:
@@ -2772,7 +3464,7 @@ Description: Several data files need to be downloaded which is not possible at p
      """Tests for Encoder.encode() and related methods."""
 --- a/pydicom/tests/test_encoders_gdcm.py
 +++ b/pydicom/tests/test_encoders_gdcm.py
-@@ -21,13 +21,13 @@ except ImportError:
+@@ -21,18 +21,19 @@ except ImportError:
      HAVE_GDCM = False
      GDCM_VERSION = [0, 0, 0]
  
@@ -2793,7 +3485,21 @@ Description: Several data files need to be downloaded which is not possible at p
  
  
  @pytest.mark.skipif(not HAVE_GDCM, reason='GDCM plugin is not available')
-@@ -73,6 +73,7 @@ class TestRLELossless:
+ class TestRLELossless:
+     """Tests for encoding RLE Lossless."""
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_cycle_u8_1s_1f(self):
+         """Test an encode/decode cycle for 8-bit 1 sample/pixel."""
+         ds = dcmread(EXPL_8_1_1F)
+@@ -51,6 +52,7 @@ class TestRLELossless:
+ 
+         assert np.array_equal(ref.ravel(), arr)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_cycle_u8_3s_1f(self):
+         """Test an encode/decode cycle for 8-bit 3 sample/pixel."""
+         ds = dcmread(EXPL_8_3_1F)
+@@ -73,6 +75,7 @@ class TestRLELossless:
  
          assert np.array_equal(ref, arr)
  
@@ -2801,7 +3507,7 @@ Description: Several data files need to be downloaded which is not possible at p
      def test_cycle_i16_1s_1f(self):
          """Test an encode/decode cycle for 16-bit 1 sample/pixel."""
          ds = dcmread(EXPL_16_1_1F)
-@@ -93,6 +94,7 @@ class TestRLELossless:
+@@ -93,6 +96,7 @@ class TestRLELossless:
  
          assert np.array_equal(ref, arr)
  
@@ -2809,7 +3515,7 @@ Description: Several data files need to be downloaded which is not possible at p
      def test_cycle_u16_3s_1f(self):
          """Test an encode/decode cycle for 16-bit 3 sample/pixel."""
          ds = dcmread(EXPL_16_3_1F)
-@@ -115,6 +117,7 @@ class TestRLELossless:
+@@ -115,6 +119,7 @@ class TestRLELossless:
  
          assert np.array_equal(ref, arr)
  
@@ -2817,7 +3523,7 @@ Description: Several data files need to be downloaded which is not possible at p
      def test_cycle_u32_1s_1f(self):
          """Test an encode/decode cycle for 32-bit 1 sample/pixel."""
          ds = dcmread(EXPL_32_1_1F)
-@@ -135,6 +138,7 @@ class TestRLELossless:
+@@ -135,6 +140,7 @@ class TestRLELossless:
  
          assert np.array_equal(ref, arr)
  
@@ -2825,7 +3531,7 @@ Description: Several data files need to be downloaded which is not possible at p
      @pytest.mark.skipif(GDCM_VERSION < [3, 1, 0], reason="GDCM bug")
      def test_cycle_u32_3s_1f(self):
          """Test an encode/decode cycle for 32-bit 3 sample/pixel."""
-@@ -159,6 +163,7 @@ class TestRLELossless:
+@@ -159,6 +165,7 @@ class TestRLELossless:
  
          assert np.array_equal(ref, arr)
  
@@ -2833,7 +3539,7 @@ Description: Several data files need to be downloaded which is not possible at p
      @pytest.mark.skipif(GDCM_VERSION >= [3, 1, 0], reason="GDCM bug fixed")
      def test_cycle_u32_3s_1f_raises(self):
          """Test that 32-bit, 3 sample/px data raises exception."""
-@@ -176,6 +181,7 @@ class TestRLELossless:
+@@ -176,6 +183,7 @@ class TestRLELossless:
          with pytest.raises(RuntimeError, match=msg):
              gdcm_rle_encode(ds.PixelData, **kwargs)
  
@@ -2841,7 +3547,7 @@ Description: Several data files need to be downloaded which is not possible at p
      def test_invalid_byteorder_raises(self):
          """Test that big endian source raises exception."""
          ds = dcmread(EXPL_8_1_1F)
-@@ -191,6 +197,7 @@ class TestRLELossless:
+@@ -191,6 +199,7 @@ class TestRLELossless:
                  ds.PixelData, encoding_plugin='gdcm', byteorder='>', **kwargs
              )
  
@@ -2849,7 +3555,7 @@ Description: Several data files need to be downloaded which is not possible at p
      def test_above_32bit_raises(self):
          """Test that > 32-bit Bits Allocated raises exception."""
          ds = dcmread(EXPL_8_1_1F)
-@@ -206,6 +213,7 @@ class TestRLELossless:
+@@ -206,6 +215,7 @@ class TestRLELossless:
          with pytest.raises(RuntimeError, match=msg):
              enc.encode(ds.PixelData, encoding_plugin='gdcm', **kwargs)
  
@@ -2857,3 +3563,234 @@ Description: Several data files need to be downloaded which is not possible at p
      def test_encoding_failure_raises(self):
          """Test that a encoding failure result raises an exception"""
          kwargs = {
+@@ -226,6 +236,7 @@ class TestRLELossless:
+         with pytest.raises(RuntimeError, match=msg):
+             gdcm_rle_encode(b'\x00', **kwargs)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_no_sequence_raises(self):
+         """Test that no sequence of fragments raises an exception"""
+         kwargs = {
+--- a/pydicom/tests/test_overlay_np.py
++++ b/pydicom/tests/test_overlay_np.py
+@@ -55,13 +55,13 @@ except ImportError:
+ # Paths to the test datasets
+ # EXPL: Explicit VR Little Endian
+ # Overlay Data
+-# 1/1, 1 sample/pixel, 1 frame
+-EXPL_1_1_1F = get_testdata_file("MR-SIEMENS-DICOM-WithOverlays.dcm")
++## 1/1, 1 sample/pixel, 1 frame
++#EXPL_1_1_1F = get_testdata_file("MR-SIEMENS-DICOM-WithOverlays.dcm")
+ # 1/1, 1 sample/pixel, N frame
+ EXPL_1_1_3F = None
+ # No Overlay Data
+-# 16/16, 1 sample/pixel, 1 frame
+-EXPL_16_1_1F = get_testdata_file("MR_small.dcm")
++## 16/16, 1 sample/pixel, 1 frame
++#EXPL_16_1_1F = get_testdata_file("MR_small.dcm")
+ 
+ 
+ # Numpy unavailable and the numpy handler is available
+@@ -82,6 +82,7 @@ class TestNoNumpy_NumpyHandler:
+         assert not HAVE_NP
+         assert NP_HANDLER is not None
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_overlay_array_raises(self):
+         """Test overlay_array raises exception"""
+         ds = dcmread(EXPL_1_1_1F)
+@@ -89,6 +90,7 @@ class TestNoNumpy_NumpyHandler:
+         with pytest.raises(RuntimeError, match=msg):
+             ds.overlay_array(0x6000)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_get_overlay_array_raises(self):
+         """Test get_overlay_array raises exception"""
+         ds = dcmread(EXPL_1_1_1F)
+@@ -110,7 +112,7 @@ IMPL = ImplicitVRLittleEndian
+ REFERENCE_DATA_LITTLE = [
+     # fpath, (syntax, bits, nr samples, pixel repr, nr frames, shape, dtype,
+     #   group)
+-    (EXPL_1_1_1F, (EXPL, 1, 1, 0, 1, (484, 484), 'uint8', 0x6000)),
++#    (EXPL_1_1_1F, (EXPL, 1, 1, 0, 1, (484, 484), 'uint8', 0x6000)),
+     # (EXPL_1_1_3F, (EXPL, 1, 1, 0, 3, (3, 512, 512), 'uint8', 0x6000)),
+ ]
+ 
+@@ -154,6 +156,7 @@ class TestNumpy_NumpyHandler:
+         if size % 2:
+             assert ds[group, 0x3000].value[-1] == b'\x00'[0]
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_little_1bit_1sample_1frame(self):
+         """Test pixel_array for little 1-bit, 1 sample/pixel, 1 frame."""
+         ds = dcmread(EXPL_1_1_1F)
+@@ -170,6 +173,7 @@ class TestNumpy_NumpyHandler:
+         ds = dcmread(EXPL_1_1_3F)
+         arr = ds.overlay_array(0x6000)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_read_only(self):
+         """Test for #717, returned array read-only."""
+         ds = dcmread(EXPL_1_1_1F)
+@@ -179,6 +183,7 @@ class TestNumpy_NumpyHandler:
+         assert 1 == arr[0, 0]
+         assert arr.flags.writeable
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_bad_group_raises(self):
+         """Test that using a bad group raises exception."""
+         ds = dcmread(EXPL_1_1_1F)
+@@ -191,6 +196,7 @@ class TestNumpy_NumpyHandler:
+         with pytest.raises(ValueError, match=msg):
+             ds.overlay_array(0x6100)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_no_frames(self):
+         """Test handler with no NumberOfFramesInOverlay element."""
+         ds = dcmread(EXPL_1_1_1F)
+@@ -213,6 +219,7 @@ class TestNumpy_NumpyHandler:
+ @pytest.mark.skipif(not HAVE_NP, reason='Numpy is not available')
+ class TestNumpy_GetOverlayArray:
+     """Tests for numpy_handler.get_overlay_array with numpy."""
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_no_overlay_data_raises(self):
+         """Test get_overlay_array raises if dataset has no OverlayData."""
+         ds = dcmread(EXPL_1_1_1F)
+@@ -221,6 +228,7 @@ class TestNumpy_GetOverlayArray:
+         with pytest.raises(AttributeError, match=r' dataset: OverlayData'):
+             get_overlay_array(ds, 0x6000)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_bad_length_raises(self):
+         """Test bad pixel data length raises exception."""
+         ds = dcmread(EXPL_1_1_1F)
+@@ -235,6 +243,7 @@ class TestNumpy_GetOverlayArray:
+         with pytest.raises(ValueError, match=msg):
+             get_overlay_array(ds, 0x6000)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_missing_padding_warns(self):
+         """A warning shall be issued if the padding for odd data is missing."""
+         ds = dcmread(EXPL_1_1_1F)
+@@ -246,6 +255,7 @@ class TestNumpy_GetOverlayArray:
+         with pytest.warns(UserWarning, match=msg):
+             get_overlay_array(ds, 0x6000)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_excess_padding(self):
+         """A warning shall be issued excess padding present."""
+         ds = dcmread(EXPL_1_1_1F)
+@@ -261,6 +271,7 @@ class TestNumpy_GetOverlayArray:
+         with pytest.warns(UserWarning, match=msg):
+             get_overlay_array(ds, 0x6000)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_old_import(self):
+         """Test that can import using the old path."""
+         from pydicom.overlay_data_handlers import numpy_handler as np_old
+--- a/pydicom/tests/test_rle_pixel_data.py
++++ b/pydicom/tests/test_rle_pixel_data.py
+@@ -308,6 +308,7 @@ class TestNumpy_NoRLEHandler:
+         assert ds.PatientName == 'CompressedSamples^MR1'
+         assert len(ds.PixelData) == 6128
+ 
++    @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."""
+@@ -360,6 +361,7 @@ class TestNumpy_RLEHandler:
+             with pytest.raises(NotImplementedError, match=msg):
+                 ds.decompress(handler_name='rle')
+ 
++    @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."""
+@@ -368,6 +370,7 @@ class TestNumpy_RLEHandler:
+         assert ds.PatientName == data[1]
+         assert len(ds.PixelData)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_pixel_array_signed(self):
+         """Test pixel_array for unsigned -> signed data."""
+         ds = dcmread(RLE_8_1_1F)
+@@ -391,6 +394,7 @@ class TestNumpy_RLEHandler:
+         with pytest.raises(NotImplementedError, match=msg):
+             ds.pixel_array
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_pixel_array_8bit_1sample_1f(self):
+         """Test pixel_array for 8-bit, 1 sample/pixel, 1 frame."""
+         ds = dcmread(RLE_8_1_1F)
+@@ -409,6 +413,7 @@ class TestNumpy_RLEHandler:
+         assert tuple(arr[300, 491:494]) == (1, 246, 1)
+         assert arr[-1].min() == arr[-1].max() == 0
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_decompress_with_handler(self):
+         """Test that decompress works with the correct handler."""
+         ds = dcmread(RLE_8_1_1F)
+@@ -426,6 +431,7 @@ class TestNumpy_RLEHandler:
+         assert tuple(arr[300, 491:494]) == (1, 246, 1)
+         assert arr[-1].min() == arr[-1].max() == 0
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_pixel_array_8bit_1sample_2f(self):
+         """Test pixel_array for 8-bit, 1 sample/pixel, 2 frame."""
+         ds = dcmread(RLE_8_1_2F)
+@@ -447,6 +453,7 @@ class TestNumpy_RLEHandler:
+         # Frame 2 is frame 1 inverted
+         assert np.array_equal((2**ds.BitsAllocated - 1) - arr[1], arr[0])
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_pixel_array_8bit_3sample_1f(self):
+         """Test pixel_array for 8-bit, 3 sample/pixel, 1 frame."""
+         ds = dcmread(RLE_8_3_1F)
+@@ -472,6 +479,7 @@ class TestNumpy_RLEHandler:
+         assert tuple(arr[85, 50, :]) == (192, 192, 192)
+         assert tuple(arr[95, 50, :]) == (255, 255, 255)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_pixel_array_8bit_3sample_2f(self):
+         """Test pixel_array for 8-bit, 3 sample/pixel, 2 frame."""
+         ds = dcmread(RLE_8_3_2F)
+@@ -521,6 +529,7 @@ class TestNumpy_RLEHandler:
+         assert tuple(arr[31, :3]) == (366, 363, 322)
+         assert tuple(arr[-1, -3:]) == (1369, 1129, 862)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_pixel_array_16bit_1sample_10f(self):
+         """Test pixel_array for 16-bit, 1, sample/pixel, 10 frame."""
+         ds = dcmread(RLE_16_1_10F)
+@@ -552,6 +561,7 @@ class TestNumpy_RLEHandler:
+         assert tuple(arr[-1, 31, :3]) == (25, 4, 9)
+         assert tuple(arr[-1, -1, -3:]) == (227, 300, 147)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_pixel_array_16bit_3sample_1f(self):
+         """Test pixel_array for 16-bit, 3 sample/pixel, 1 frame."""
+         ds = dcmread(RLE_16_3_1F)
+@@ -578,6 +588,7 @@ class TestNumpy_RLEHandler:
+         assert tuple(arr[85, 50, :]) == (49344, 49344, 49344)
+         assert tuple(arr[95, 50, :]) == (65535, 65535, 65535)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_pixel_array_16bit_3sample_2f(self):
+         """Test pixel_array for 16-bit, 3, sample/pixel, 10 frame."""
+         ds = dcmread(RLE_16_3_2F)
+@@ -660,6 +671,7 @@ class TestNumpy_RLEHandler:
+         assert tuple(arr[-1, 4, 3:6]) == (1031000, 1031000, 1031000)
+         assert tuple(arr[-1, -1, -3:]) == (801000, 800000, 799000)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_pixel_array_32bit_3sample_1f(self):
+         """Test pixel_array for 32-bit, 3 sample/pixel, 1 frame."""
+         ds = dcmread(RLE_32_3_1F)
+@@ -686,6 +698,7 @@ class TestNumpy_RLEHandler:
+         assert tuple(arr[85, 50, :]) == (3233857728, 3233857728, 3233857728)
+         assert tuple(arr[95, 50, :]) == (4294967295, 4294967295, 4294967295)
+ 
++    @pytest.mark.skip("When building a Debian package we can not download anything")
+     def test_pixel_array_32bit_3sample_2f(self):
+         """Test pixel_array for 32-bit, 3, sample/pixel, 2 frame."""
+         ds = dcmread(RLE_32_3_2F)



View it on GitLab: https://salsa.debian.org/med-team/pydicom/-/compare/889857b5c98b15cfe76f5cf4ba4a0940db44aa98...30ce60ee6af0c6924af88dbed5c1a08a3c48ed8e

-- 
View it on GitLab: https://salsa.debian.org/med-team/pydicom/-/compare/889857b5c98b15cfe76f5cf4ba4a0940db44aa98...30ce60ee6af0c6924af88dbed5c1a08a3c48ed8e
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/20211211/de258003/attachment-0001.htm>


More information about the debian-med-commit mailing list