Skip to content

Commit 5a579fc

Browse files
committed
fix "DeprecationWarning: Data type alias 'a' was deprecated in NumPy 2.0. Use the 'S' alias instead."
1 parent 886e2ed commit 5a579fc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/test_input.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def test_numpy_record_array():
173173
[("Alice", 23, 169.5), ("Bob", 27, 175.0)],
174174
dtype={
175175
"names": ["name", "age", "height"],
176-
"formats": ["a32", "uint8", "float32"],
176+
"formats": ["S32", "uint8", "float32"],
177177
},
178178
)
179179
expected = "\n".join(
@@ -199,7 +199,7 @@ def test_numpy_record_array_keys():
199199
[("Alice", 23, 169.5), ("Bob", 27, 175.0)],
200200
dtype={
201201
"names": ["name", "age", "height"],
202-
"formats": ["a32", "uint8", "float32"],
202+
"formats": ["S32", "uint8", "float32"],
203203
},
204204
)
205205
expected = "\n".join(
@@ -225,7 +225,7 @@ def test_numpy_record_array_headers():
225225
[("Alice", 23, 169.5), ("Bob", 27, 175.0)],
226226
dtype={
227227
"names": ["name", "age", "height"],
228-
"formats": ["a32", "uint8", "float32"],
228+
"formats": ["S32", "uint8", "float32"],
229229
},
230230
)
231231
expected = "\n".join(

0 commit comments

Comments
 (0)