File: 0010-Allow-test_svds_parameter_k_which-to-fail-on-armel.patch

package info (click to toggle)
scipy 1.16.0-1exp7
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 234,820 kB
  • sloc: cpp: 503,145; python: 344,611; ansic: 195,638; javascript: 89,566; fortran: 56,210; cs: 3,081; f90: 1,150; sh: 848; makefile: 785; pascal: 284; csh: 135; lisp: 134; xml: 56; perl: 51
file content (29 lines) | stat: -rw-r--r-- 1,218 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From: Jochen Sprickerhof <jspricke@debian.org>
Date: Tue, 20 Dec 2022 19:29:15 +0100
Subject: Allow test_svds_parameter_k_which to fail on armel

---
 scipy/sparse/linalg/_eigen/tests/test_svds.py | 3 +++
 1 file changed, 3 insertions(+)

Index: scipy/scipy/sparse/linalg/_eigen/tests/test_svds.py
===================================================================
--- scipy.orig/scipy/sparse/linalg/_eigen/tests/test_svds.py	2025-01-16 15:20:01.780197515 +0100
+++ scipy/scipy/sparse/linalg/_eigen/tests/test_svds.py	2025-01-16 15:20:01.776197479 +0100
@@ -1,6 +1,7 @@
 import re
 import copy
 import numpy as np
+import platform
 
 from numpy.testing import assert_allclose, assert_equal, assert_array_equal
 import pytest
@@ -306,6 +307,8 @@
     @pytest.mark.filterwarnings("ignore:Exited",
                                 reason="Ignore LOBPCG early exit.")
     # loop instead of parametrize for simplicity
+    @pytest.mark.xfail(platform.machine() == 'armv8l',
+                       reason="fails on armel")
     def test_svds_parameter_tol(self):
         # check the effect of the `tol` parameter on solver accuracy by solving
         # the same problem with varying `tol` and comparing the eigenvalues