Fix warning filter
@@ -146,7 +146,7 @@ class TestArrayIndex(unittest.TestCase):
a = xp.zeros((2, 3, 4), dtype=dst_type)
b = testing.shaped_arange((2, 3, 4), xp, src_type)
with warnings.catch_warnings():
- warnings.filterwarnings('ignore')
+ warnings.simplefilter('ignore', numpy.ComplexWarning)
a[:] = b
return a
