Skip to content

Commit 3609fe5

Browse files
committed
Update comment about conversion from np.float32 to C++ int
1 parent 915423d commit 3609fe5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_builtin_casters.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,8 @@ def require_implicit(v):
308308
assert convert(np.intc(42)) == 42
309309
assert noconvert(np.intc(42)) == 42
310310

311-
assert convert(np.float32(3.14159)) == 3 # This might be wrong/unwanted?
311+
# The implicit conversion from np.float32 is undesirable but currently accepted.
312+
assert convert(np.float32(3.14159)) == 3
312313
require_implicit(np.float32(3.14159))
313314

314315

0 commit comments

Comments
 (0)