summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2021-01-24 14:11:27 -0600
committerGitHub <noreply@github.com>2021-01-24 14:11:27 -0600
commit223ccea5ca2323ea011138a0aeecfe1bf2ce63b4 (patch)
tree4800864176aaec29717ad785efbef214ddbe54b3
parent04b58d3ffbd2c8d30c36ae6ed6366f1069136c43 (diff)
parent3c7cd655c78ed7663e0dd672ed705364a09c8e16 (diff)
downloadnumpy-223ccea5ca2323ea011138a0aeecfe1bf2ce63b4.tar.gz
Merge pull request #18217 from charris/fix-complexwarning-in-test
MAINT: Ignore ComplexWarning in ``test_iter_copy_casts``.
-rw-r--r--numpy/core/tests/test_nditer.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/core/tests/test_nditer.py b/numpy/core/tests/test_nditer.py
index 5e6472ae5..94f61baca 100644
--- a/numpy/core/tests/test_nditer.py
+++ b/numpy/core/tests/test_nditer.py
@@ -1365,6 +1365,7 @@ def test_iter_copy():
@pytest.mark.parametrize("dtype", np.typecodes["All"])
@pytest.mark.parametrize("loop_dtype", np.typecodes["All"])
+@pytest.mark.filterwarnings("ignore::numpy.ComplexWarning")
def test_iter_copy_casts(dtype, loop_dtype):
# Ensure the dtype is never flexible:
if loop_dtype.lower() == "m":