[med-svn] [Git][python-team/packages/tifffile][master] Skip more remote-data depending tests

Ole Streicher gitlab at salsa.debian.org
Fri Nov 20 08:23:29 GMT 2020



Ole Streicher pushed to branch master at Debian Python Team / packages / tifffile


Commits:
80739704 by Ole Streicher at 2020-11-20T09:23:18+01:00
Skip more remote-data depending tests

- - - - -


1 changed file:

- debian/patches/Disable-tests-that-require-remote-files.patch


Changes:

=====================================
debian/patches/Disable-tests-that-require-remote-files.patch
=====================================
@@ -3,11 +3,11 @@ Date: Sat, 16 May 2020 18:10:59 +0200
 Subject: Disable tests that require remote files
 
 ---
- tests/test_tifffile.py | 6 ++++--
- 1 file changed, 4 insertions(+), 2 deletions(-)
+ tests/test_tifffile.py | 11 +++++++++--
+ 1 file changed, 9 insertions(+), 2 deletions(-)
 
 diff --git a/tests/test_tifffile.py b/tests/test_tifffile.py
-index bfeaeac..bae2efd 100644
+index bfeaeac..a979cd5 100644
 --- a/tests/test_tifffile.py
 +++ b/tests/test_tifffile.py
 @@ -173,7 +173,7 @@ from tifffile.tifffile import (
@@ -27,7 +27,39 @@ index bfeaeac..bae2efd 100644
  def test_issue_infinite_loop():
      """Test infinite loop reading more than two tags of same code in IFD."""
      # Reported by D. Hughes on 2019.7.26
-@@ -2336,7 +2337,7 @@ def test_func_pformat_xml():
+@@ -1318,6 +1319,7 @@ def test_class_omexml_fail(shape, storedshape, dtype, axes, error):
+     ],
+ )
+ @pytest.mark.parametrize('metadata', ('axes', None))
++ at pytest.mark.skip(reason="remote connection not available")
+ def test_class_omexml(axes, autoaxes, shape, storedshape, dimorder, metadata):
+     """Test OmeXml class."""
+     dtype = 'uint8'
+@@ -1407,6 +1409,7 @@ def test_class_omexml(axes, autoaxes, shape, storedshape, dimorder, metadata):
+         ),
+     ],
+ )
++ at pytest.mark.skip(reason="remote connection not available")
+ def test_class_omexml_modulo(axes, shape, storedshape, sizetzc, dimorder):
+     """Test OmeXml class with modulo dimensions."""
+     dtype = 'uint8'
+@@ -1420,6 +1423,7 @@ def test_class_omexml_modulo(axes, shape, storedshape, sizetzc, dimorder):
+     assert_valid_omexml(omexml)
+ 
+ 
++ at pytest.mark.skip(reason="remote connection not available")
+ def test_class_omexml_attributes():
+     """Test OmeXml class with attributes and elements."""
+     from uuid import uuid1  # noqa: delayed import
+@@ -1458,6 +1462,7 @@ def test_class_omexml_attributes():
+     assert 'TheC="0" TheZ="2" TheT="0" PositionZ="4.0"' in omexml
+ 
+ 
++ at pytest.mark.skip(reason="remote connection not available")
+ def test_class_omexml_multiimage():
+     """Test OmeXml class with multiple images."""
+     omexml = OmeXml(description='multiimage')
+@@ -2336,7 +2341,7 @@ def test_func_pformat_xml():
      )
  
      assert pformat(value, height=8, width=60) == (
@@ -36,7 +68,7 @@ index bfeaeac..bae2efd 100644
  <Dimap_Document name="band2.dim">
   <Metadata_Id>
    <METADATA_FORMAT version="2.12.1">DIMAP</METADATA_FORMAT>
-@@ -2539,6 +2540,7 @@ def assert_filehandle(fh, offset=0):
+@@ -2539,6 +2544,7 @@ def assert_filehandle(fh, offset=0):
          )
  
  
@@ -44,3 +76,11 @@ index bfeaeac..bae2efd 100644
  def test_filehandle_seekable():
      """Test FileHandle must be seekable."""
      import ssl
+@@ -11424,6 +11430,7 @@ def test_write_imagej_raw():
+         ((2, 3, 4, 5, 6, 7, 32, 32, 3), 'TQCPZRYXS'),
+     ],
+ )
++ at pytest.mark.skip(reason="remote connection not available")
+ def test_write_ome(shape, axes):
+     """Test write OME-TIFF format."""
+     metadata = {'axes': axes} if axes is not None else {}



View it on GitLab: https://salsa.debian.org/python-team/packages/tifffile/-/commit/8073970470acad23d21e5660525f9c8f1026b841

-- 
View it on GitLab: https://salsa.debian.org/python-team/packages/tifffile/-/commit/8073970470acad23d21e5660525f9c8f1026b841
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/20201120/8b6ff12d/attachment-0001.html>


More information about the debian-med-commit mailing list