mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 05:05:11 +00:00
MAINT: Remove np.int_ (#4867)
This commit is contained in:
parent
0a756c0bb2
commit
dd64df73c3
@ -298,7 +298,7 @@ def test_constructors():
|
|||||||
results = m.converting_constructors([1, 2, 3])
|
results = m.converting_constructors([1, 2, 3])
|
||||||
for a in results.values():
|
for a in results.values():
|
||||||
np.testing.assert_array_equal(a, [1, 2, 3])
|
np.testing.assert_array_equal(a, [1, 2, 3])
|
||||||
assert results["array"].dtype == np.int_
|
assert results["array"].dtype == np.dtype(int)
|
||||||
assert results["array_t<int32>"].dtype == np.int32
|
assert results["array_t<int32>"].dtype == np.int32
|
||||||
assert results["array_t<double>"].dtype == np.float64
|
assert results["array_t<double>"].dtype == np.float64
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user