diff options
author | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2016-10-15 18:02:30 -0400 |
---|---|---|
committer | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2016-10-17 11:23:13 -0400 |
commit | e4574a54d4f712e2f7f98ee8c442e77c645b5325 (patch) | |
tree | 5ad6389738efd9d5899eabfb17b5c3f8e0c1231d /pkgs/development/python-modules | |
parent | 095095c479c9732677bdd20a447b3f0183bab7f9 (diff) | |
download | nixlib-e4574a54d4f712e2f7f98ee8c442e77c645b5325.tar nixlib-e4574a54d4f712e2f7f98ee8c442e77c645b5325.tar.gz nixlib-e4574a54d4f712e2f7f98ee8c442e77c645b5325.tar.bz2 nixlib-e4574a54d4f712e2f7f98ee8c442e77c645b5325.tar.lz nixlib-e4574a54d4f712e2f7f98ee8c442e77c645b5325.tar.xz nixlib-e4574a54d4f712e2f7f98ee8c442e77c645b5325.tar.zst nixlib-e4574a54d4f712e2f7f98ee8c442e77c645b5325.zip |
cython: disable tests that fail when built against libc++
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/cython_test.patch | 15 |
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.)) |