[med-svn] [Git][python-team/modules/tifffile][debian/20200717-2] 2 commits: Skip tests that require codec or private data

Ole Streicher gitlab at salsa.debian.org
Sat Jul 18 12:47:42 BST 2020



Ole Streicher pushed to tag debian/20200717-2 at Debian Python Team / DPMT / tifffile


Commits:
8ccfa19c by Ole Streicher at 2020-07-18T11:40:48+02:00
Skip tests that require codec or private data

- - - - -
00d0f922 by Ole Streicher at 2020-07-18T11:40:48+02:00
Update changelog for 20200717-2 release

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/Skip-tests-that-require-codec-or-private-data.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+tifffile (20200717-2) unstable; urgency=low
+
+  * Add python3-lxml recommendation and test dependency
+  * Skip tests that require codec or private data
+
+ -- Ole Streicher <olebole at debian.org>  Sat, 18 Jul 2020 10:54:06 +0200
+
 tifffile (20200717-1) unstable; urgency=low
 
   * New upstream version 20200717. Fixes problems on big endian


=====================================
debian/patches/Skip-tests-that-require-codec-or-private-data.patch
=====================================
@@ -0,0 +1,44 @@
+From: Ole Streicher <olebole at debian.org>
+Date: Sat, 18 Jul 2020 11:39:56 +0200
+Subject: Skip tests that require codec or private data
+
+---
+ tests/test_tifffile.py | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/tests/test_tifffile.py b/tests/test_tifffile.py
+index c94e905..717b734 100644
+--- a/tests/test_tifffile.py
++++ b/tests/test_tifffile.py
+@@ -1846,6 +1846,7 @@ def test_func_pformat_numpy():
+        5900040.])""")
+ 
+ 
++ at pytest.mark.xfail(reason="string asserts for XML is not reliable")
+ def test_func_pformat_xml():
+     """Test pformat function with XML."""
+     value = """<?xml version="1.0" encoding="ISO-8859-1" ?>
+@@ -4211,6 +4212,7 @@ def test_read_subifd8():
+         assert__str__(tif)
+ 
+ 
++ at pytest.mark.skipif(SKIP_CODECS, reason=REASON)
+ def test_read_tiles():
+     """Test iteration over tiles, manually and via page.segments."""
+     data = numpy.arange(600*500*3, dtype='uint8').reshape((600, 500, 3))
+@@ -9029,6 +9031,7 @@ def test_write_extrasamples_planar_rgb():
+             assert__str__(tif)
+ 
+ 
++ at pytest.mark.skipif(SKIP_PRIVATE, reason=REASON)
+ def test_write_cfa():
+     """Test write uncompressed CFA image."""
+     # TODO: write a valid TIFF/EP file
+@@ -9327,6 +9330,7 @@ def test_write_volume():
+             assert__str__(tif)
+ 
+ 
++ at pytest.mark.skipif(SKIP_CODECS, reason=REASON)
+ def test_write_volume_png():
+     """Test write tiled volume using an image compressor."""
+     data = random_data('uint8', (16, 64, 96, 3))


=====================================
debian/patches/series
=====================================
@@ -1,2 +1,3 @@
 Don-t-install-lsm2bin.patch
 Disable-tests-that-require-remote-files.patch
+Skip-tests-that-require-codec-or-private-data.patch



View it on GitLab: https://salsa.debian.org/python-team/modules/tifffile/-/compare/181f6da336a01d6e0837b06fcbc9e53ea3c25c22...00d0f9224fa7021716bf1761b069289b92bc1fd0

-- 
View it on GitLab: https://salsa.debian.org/python-team/modules/tifffile/-/compare/181f6da336a01d6e0837b06fcbc9e53ea3c25c22...00d0f9224fa7021716bf1761b069289b92bc1fd0
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/20200718/198852fe/attachment-0001.html>


More information about the debian-med-commit mailing list