This commit is contained in:
2025-01-26 19:24:23 -08:00
parent 32cd60e92b
commit d1dde0dbc6
4155 changed files with 29170 additions and 216373 deletions

View File

@@ -23,7 +23,7 @@ import numpy._core.fromnumeric as fromnumeric
import numpy._core.umath as umath
from numpy.exceptions import AxisError
from numpy.testing import (
assert_raises, assert_warns, suppress_warnings, IS_WASM
assert_raises, assert_warns, suppress_warnings, IS_WASM, temppath
)
from numpy.testing._private.utils import requires_memory
from numpy import ndarray
@@ -1019,8 +1019,9 @@ class TestMaskedArray:
xm = masked_array([1, 2, 3], mask=[False, True, False])
# Test case to check the NotImplementedError.
# It is not implemented at this point of time. We can change this in future
with pytest.raises(NotImplementedError):
np.save('xm.np', xm)
with temppath(suffix='.npy') as path:
with pytest.raises(NotImplementedError):
np.save(path, xm)
class TestMaskedArrayArithmetic: