diff options
author | Ralf Gommers <ralf.gommers@googlemail.com> | 2012-11-14 11:54:03 -0800 |
---|---|---|
committer | Ralf Gommers <ralf.gommers@googlemail.com> | 2012-11-14 11:54:03 -0800 |
commit | 023e559eda106cc48f82408a5958c7444d3769b2 (patch) | |
tree | f5a92397c7b58c420405032c5e2e4a55d70f449b | |
parent | 23348280208f267f066e8501d1b646289eeef722 (diff) | |
parent | 48beebc70360a447c7ba8155f20ff170c300dfc6 (diff) | |
download | numpy-023e559eda106cc48f82408a5958c7444d3769b2.tar.gz |
Merge pull request #2739 from certik/fix346
TST: mark longdouble tests for spacing/nextafter as knownfail on PPC.
-rw-r--r-- | numpy/core/tests/test_umath.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/numpy/core/tests/test_umath.py b/numpy/core/tests/test_umath.py index 48a54526b..356b51f54 100644 --- a/numpy/core/tests/test_umath.py +++ b/numpy/core/tests/test_umath.py @@ -6,6 +6,11 @@ import numpy.core.umath as ncu import numpy as np +def on_powerpc(): + """ True if we are running on a Power PC platform.""" + return platform.processor() == 'powerpc' or \ + platform.machine().startswith('ppc') + class TestDivision(TestCase): def test_division_int(self): # int division should follow Python @@ -1112,9 +1117,8 @@ def test_nextafter(): def test_nextafterf(): return _test_nextafter(np.float32) -@dec.knownfailureif(sys.platform == 'win32' or - ("powerpc" in platform.processor()), - "Long double support buggy on win32 and PPC.") +@dec.knownfailureif(sys.platform == 'win32' or on_powerpc(), + "Long double support buggy on win32 and PPC, ticket 1664.") def test_nextafterl(): return _test_nextafter(np.longdouble) @@ -1139,9 +1143,8 @@ def test_spacing(): def test_spacingf(): return _test_spacing(np.float32) -@dec.knownfailureif(sys.platform == 'win32' or - ("powerpc" in platform.processor()), - "Long double support buggy on win32 and PPC.") +@dec.knownfailureif(sys.platform == 'win32' or on_powerpc(), + "Long double support buggy on win32 and PPC, ticket 1664.") def test_spacingl(): return _test_spacing(np.longdouble) |