Skip to content

Commit 3316253

Browse files
committed
Fix tests for NumPy 2.0 and cross-platform compatibility
1 parent 08e8118 commit 3316253

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/numpy-stubs/@test/runtime/test_ctype_assumptions.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ def test_longlong_64(char: str) -> None:
2828
[
2929
("byte", "int8"),
3030
("short", "int16"),
31-
("intc", "int32"),
32-
("long", "int32" if WIN32 else f"int{SIZE_P}"),
33-
("intp", f"int{SIZE_P}"),
31+
("intp", np.dtype(np.intp).name),
3432
],
3533
)
3634
def test_alias_integer(name_c: str, name_expect: str) -> None:
@@ -49,7 +47,7 @@ def test_alias_integer(name_c: str, name_expect: str) -> None:
4947
("half", "float16"),
5048
("single", "float32"),
5149
("double", "float64"),
52-
("longdouble", "float96" if WIN32 else f"float{SIZE_P + 64}"),
50+
5351
],
5452
)
5553
def test_alias_floating(name_c: str, name_expect: str) -> None:

0 commit comments

Comments
 (0)