diff options
author | Travis E. Oliphant <teoliphant@gmail.com> | 2012-07-11 15:48:37 -0700 |
---|---|---|
committer | Travis E. Oliphant <teoliphant@gmail.com> | 2012-07-11 15:48:37 -0700 |
commit | 09c1e40cceb1f4c1b04f6afd63a7b1f53c974603 (patch) | |
tree | fe0fb1c7424ea6c3f1b67b8d6f7dc78b0204dec2 | |
parent | e50d16e150f919b9c62f5c03628ac340955dcb5f (diff) | |
parent | 7bd918542dbcce64e643eba07a2ce665be2e13d4 (diff) | |
download | numpy-09c1e40cceb1f4c1b04f6afd63a7b1f53c974603.tar.gz |
Merge pull request #345 from rgommers/ticket-1664-powerpc-failure
TST: mark longdouble tests for spacing/nextafter as knownfail on PPC.
-rw-r--r-- | numpy/core/tests/test_umath.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/numpy/core/tests/test_umath.py b/numpy/core/tests/test_umath.py index 6aed19ca6..892b1fae6 100644 --- a/numpy/core/tests/test_umath.py +++ b/numpy/core/tests/test_umath.py @@ -1,10 +1,17 @@ import sys +import platform from numpy.testing import * 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 _FilterInvalids(object): def setUp(self): self.olderr = np.seterr(invalid='ignore') @@ -1118,7 +1125,8 @@ def test_nextafter(): def test_nextafterf(): return _test_nextafter(np.float32) -@dec.knownfailureif(sys.platform == 'win32', "Long double support buggy on win32") +@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) @@ -1143,7 +1151,8 @@ def test_spacing(): def test_spacingf(): return _test_spacing(np.float32) -@dec.knownfailureif(sys.platform == 'win32', "Long double support buggy on win32") +@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) |