File: xfail-tests-that-may-require-the-imagecodecs-package.patch

package info (click to toggle)
tifffile 20251016-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,328 kB
  • sloc: python: 39,917; makefile: 7
file content (22 lines) | stat: -rw-r--r-- 844 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Ole Streicher <ole@aip.de>
Date: Wed, 4 May 2022 11:46:58 +0200
Subject: xfail tests that may require the 'imagecodecs' package

The imagecodecs package is not packaged for Debian yet.
---
 tests/test_tifffile.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/test_tifffile.py b/tests/test_tifffile.py
index defe9e4..7283e8a 100644
--- a/tests/test_tifffile.py
+++ b/tests/test_tifffile.py
@@ -5806,6 +5806,8 @@ def test_func_bitorder_decode():
 def test_func_delta_codec(byteorder, kind):
     """Test delta codec functions."""
     from tifffile._imagecodecs import delta_decode, delta_encode
+    if sys.byteorder != 'little' and byteorder == '<':
+        pytest.xfail("may require require 'imagecodecs' package")
 
     # if byteorder == '>' and numpy.dtype(kind).itemsize == 1:
     #     pytest.skip('duplicate test')