summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/cython_test.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/cython_test.patch')
-rw-r--r--pkgs/development/python-modules/cython_test.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/cython_test.patch b/pkgs/development/python-modules/cython_test.patch
new file mode 100644
index 000000000000..5b1cece3aa50
--- /dev/null
+++ b/pkgs/development/python-modules/cython_test.patch
@@ -0,0 +1,15 @@
+diff --git a/tests/run/numpy_math.pyx b/tests/run/numpy_math.pyx
+index eafd23a..4a15522 100644
+--- a/tests/run/numpy_math.pyx
++++ b/tests/run/numpy_math.pyx
+@@ -37,8 +37,8 @@ def test_fp_classif():
+ assert not npmath.isnan(d_zero)
+ assert not npmath.isnan(f_zero)
+
+- assert npmath.isinf(npmath.INFINITY) == 1
+- assert npmath.isinf(-npmath.INFINITY) == -1
++ assert npmath.isinf(npmath.INFINITY) != 0
++ assert npmath.isinf(-npmath.INFINITY) != 0
+ assert npmath.isnan(npmath.NAN)
+
+ assert npmath.signbit(npmath.copysign(1., -1.))