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

package info (click to toggle)
tifffile 20230203-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,884 kB
  • sloc: python: 35,592; makefile: 14
file content (22 lines) | stat: -rw-r--r-- 850 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 92e7a87..29bd5cf 100644
--- a/tests/test_tifffile.py
+++ b/tests/test_tifffile.py
@@ -4640,6 +4640,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')