8000 TST: skip floating point warning test failures on ARM. Closes gh-413. · certik/numpy@dcc5c79 · GitHub
[go: up one dir, main page]

Skip to content

Commit dcc5c79

Browse files
Ralf Gommerscertik
authored andcommitted
TST: skip floating point warning test failures on ARM. Closes numpygh-413.
1 parent d5d2049 commit dcc5c79

File tree

4 files changed

+54
-49
lines changed

4 files changed

+54
-49
lines changed

numpy/core/tests/test_errstate.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@
88
if sys.version_info[:2] >= (2, 5):
99
exec """
1010
from __future__ import with_statement
11+
import platform
12+
1113
from numpy.core import *
1214
from numpy.random import rand, randint
1315
from numpy.testing import *
1416
17+
1518
class TestErrstate(TestCase):
19+
@dec.skipif(platform.machine() == "armv5tel", "See gh-413.")
1620
def test_invalid(self):
1721
with errstate(all='raise', under='ignore'):
1822
a = -arange(3)

numpy/core/tests/test_half.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
import warnings
1+
import platform
2+
23
import numpy as np
34
from numpy import uint16, float16, float32, float64
4-
from numpy.testing import TestCase, run_module_suite, assert_, assert_equal
5+
from numpy.testing import TestCase, run_module_suite, assert_, assert_equal, \
6+
dec
57

68

79
def assert_raises_fpe(strmatch, callable, *args, **kwargs):
@@ -357,8 +359,8 @@ def test_half_coercion(self):
357359
assert_equal(np.power(b32,a16).dtype, float16)
358360
assert_equal(np.power(b32,b16).dtype, float32)
359361

362+
@dec.skipif(platform.machine() == "armv5tel", "See gh-413.")
360363
def test_half_fpe(self):
361-
"""Test that half raises the correct underflows and overflows"""
362364
oldsettings = np.seterr(all='raise')
363365
try:
364366
sx16 = np.array((1e-4,),dtype=float16)

0 commit comments

Comments
 (0)
0