Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ba9205f

Browse filesBrowse files
authored
TEST: cleanups [skip cirrus][skip azp] (#27943)
1 parent 16e3dbe commit ba9205f
Copy full SHA for ba9205f

File tree

2 files changed

+4
-4
lines changed
Filter options

2 files changed

+4
-4
lines changed

‎numpy/f2py/tests/util.py

Copy file name to clipboardExpand all lines: numpy/f2py/tests/util.py
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ def check_language(lang, code_snippet=None):
5757
return runmeson.returncode == 0
5858
finally:
5959
shutil.rmtree(tmpdir)
60-
return False
6160

6261

6362
fortran77_code = '''

‎numpy/ma/tests/test_core.py

Copy file name to clipboardExpand all lines: numpy/ma/tests/test_core.py
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import numpy._core.umath as umath
2424
from numpy.exceptions import AxisError
2525
from numpy.testing import (
26-
assert_raises, assert_warns, suppress_warnings, IS_WASM
26+
assert_raises, assert_warns, suppress_warnings, IS_WASM, temppath
2727
)
2828
from numpy.testing._private.utils import requires_memory
2929
from numpy import ndarray
@@ -1019,8 +1019,9 @@ def test_maskedarray_tofile_raises_notimplementederror(self):
10191019
xm = masked_array([1, 2, 3], mask=[False, True, False])
10201020
# Test case to check the NotImplementedError.
10211021
# It is not implemented at this point of time. We can change this in future
1022-
with pytest.raises(NotImplementedError):
1023-
np.save('xm.np', xm)
1022+
with temppath(suffix='.npy') as path:
1023+
with pytest.raises(NotImplementedError):
1024+
np.save(path, xm)
10241025

10251026

10261027
class TestMaskedArrayArithmetic:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.