summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2022-12-05 15:37:49 -0500
committerMatti Picus <matti.picus@gmail.com>2022-12-05 15:40:15 -0500
commite33a161a0d749368f84f30f1c9b13b8df1060520 (patch)
tree19409ebc4e4923536b0fd35b9de07c8234ecbbee
parentcfad62fd73c2a0f3d0dc4d73989071e331898a09 (diff)
downloadnumpy-e33a161a0d749368f84f30f1c9b13b8df1060520.tar.gz
TST: skip floating-point error test on wasm
-rw-r--r--numpy/core/tests/test_umath.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/tests/test_umath.py b/numpy/core/tests/test_umath.py
index 1160eca54..f21a88acd 100644
--- a/numpy/core/tests/test_umath.py
+++ b/numpy/core/tests/test_umath.py
@@ -1069,8 +1069,9 @@ class TestPower:
assert_complex_equal(np.power(zero, -p), cnan)
assert_complex_equal(np.power(zero, -1+0.2j), cnan)
- # Testing 0^{Non-zero} issue 18378
+ @pytest.mark.skipif(IS_WASM, reason="fp errors don't work in wasm")
def test_zero_power_nonzero(self):
+ # Testing 0^{Non-zero} issue 18378
zero = np.array([0.0+0.0j])
cnan = np.array([complex(np.nan, np.nan)])