File: 0005-Skip-broken-tests-on-BE-archs.patch

package info (click to toggle)
numcodecs 0.11.0%2Bds-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 820 kB
  • sloc: python: 3,010; makefile: 216; sh: 8
file content (22 lines) | stat: -rw-r--r-- 828 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Antonio Valentino <antonio.valentino@tiscali.it>
Date: Sat, 21 Nov 2020 18:07:18 +0000
Subject: Skip broken tests on BE architectures

Forwarded: https://github.com/zarr-developers/numcodecs/issues/256
---
 numcodecs/tests/test_categorize.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/numcodecs/tests/test_categorize.py b/numcodecs/tests/test_categorize.py
index 924f974..439fa78 100644
--- a/numcodecs/tests/test_categorize.py
+++ b/numcodecs/tests/test_categorize.py
@@ -75,6 +75,8 @@ def test_repr():
     assert expect == actual
 
 
+import sys
+@pytest.mark.skipif(sys.byteorder == 'big', reason='broken test no BE architectures')
 def test_backwards_compatibility():
     codec = Categorize(labels=labels, dtype='<U4', astype='u1')
     check_backwards_compatibility(Categorize.codec_id, arrays, [codec],