Skip to content

Commit 2ecc630

Browse files
committed
Fix dtype in numpy tests
For some reason my version of numpy does not understand f32 as a data type. Using float32 works however. Fixed Issue astanin#41
1 parent 5a73cf7 commit 2ecc630

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_input.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def test_numpy_record_array():
165165
na = numpy.asarray([("Alice", 23, 169.5),
166166
("Bob", 27, 175.0)],
167167
dtype={"names":["name","age","height"],
168-
"formats":["a32","uint8","f32"]})
168+
"formats":["a32","uint8","float32"]})
169169
expected = "\n".join([
170170
"----- -- -----",
171171
"Alice 23 169.5",
@@ -185,7 +185,7 @@ def test_numpy_record_array_keys():
185185
na = numpy.asarray([("Alice", 23, 169.5),
186186
("Bob", 27, 175.0)],
187187
dtype={"names":["name","age","height"],
188-
"formats":["a32","uint8","f32"]})
188+
"formats":["a32","uint8","float32"]})
189189
expected = "\n".join([
190190
"name age height",
191191
"------ ----- --------",
@@ -205,7 +205,7 @@ def test_numpy_record_array_headers():
205205
na = numpy.asarray([("Alice", 23, 169.5),
206206
("Bob", 27, 175.0)],
207207
dtype={"names":["name","age","height"],
208-
"formats":["a32","uint8","f32"]})
208+
"formats":["a32","uint8","float32"]})
209209
expected = "\n".join([
210210
"person years cm",
211211
"-------- ------- -----",

0 commit comments

Comments
 (0)