Skip to content

Commit f685228

Browse files
committed
BUG: fix test_npy_uintp_type_enum
test_npy_uintp_type_enum will fail if it is run before any of the other tests in test_cython.py. The reason is that although it imports the checks module, it does not contain the install_temp parameter that ensures that the checks module is compiled. Running test_npy_uintp_type_enum before any of the other tests in test_cython.py will result in a No module named 'checks' error. If the test is run after one of the other tests in test_cython.py that do contain the install_temp parameter, test_npy_uintp_type_enum will run fine. Here we fix the issue by adding the install_temp parameter to test_npy_uintp_type_enum. Closes numpy#29354
1 parent 8cf1f7d commit f685228

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/_core/tests/test_cython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,6 @@ def test_npystring_allocators_other_dtype(install_temp):
347347

348348
@pytest.mark.skipif(sysconfig.get_platform() == 'win-arm64',
349349
reason='no checks module on win-arm64')
350-
def test_npy_uintp_type_enum():
350+
def test_npy_uintp_type_enum(install_temp):
351351
import checks
352352
assert checks.check_npy_uintp_type_enum()

0 commit comments

Comments
 (0)