File: skip-armel-test-nan2zero.patch

package info (click to toggle)
nibabel 5.3.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 69,240 kB
  • sloc: python: 39,826; makefile: 276; ansic: 202; sh: 99
file content (23 lines) | stat: -rw-r--r-- 1,103 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
23
Description: skip test failing on armel.
 This test fails for no obvious reason.  Other release architecture are not
 affected; notably the armhf platform, which includes hardware FPU support,
 is not affected.  Skipping since it is unlikely this package is needed on
 platforms lacking FPU, and the test in question does not seem directly
 relevant for end users.
Author: Étienne Mollier <emollier@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1029593
Forwarded: no
Last-Update: 2023-01-26
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/nibabel/tests/test_volumeutils.py
+++ b/nibabel/tests/test_volumeutils.py
@@ -635,6 +635,8 @@ def test_a2f_bad_scaling():
                 array_to_file(arr, fobj, np.int8, intercept=inter, divslope=slope)
 
 
+@pytest.mark.skipif(os.uname().machine[0:3] == 'arm',
+                    reason="fails on armel only, see #1029593.")
 def test_a2f_nan2zero_range():
     # array_to_file should check if nan can be represented as zero
     # This comes about when the writer can't write the value (-intercept /