diff options
| author | rgommers <ralf.gommers@googlemail.com> | 2010-11-08 21:24:59 +0800 |
|---|---|---|
| committer | Ondřej Čertík <ondrej.certik@gmail.com> | 2012-11-13 19:18:38 -0800 |
| commit | 48beebc70360a447c7ba8155f20ff170c300dfc6 (patch) | |
| tree | f5a92397c7b58c420405032c5e2e4a55d70f449b /numpy | |
| parent | 23348280208f267f066e8501d1b646289eeef722 (diff) | |
| download | numpy-48beebc70360a447c7ba8155f20ff170c300dfc6.tar.gz | |
TST: mark longdouble tests for spacing/nextafter as knownfail on PPC.
See #1664.
Thanks to Matthew Brett for suggesting this improved detection of PPC.
Conflicts:
numpy/core/tests/test_umath.py
Diffstat (limited to 'numpy')
| -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) |
