Skip to content

Commit 7800774

Browse files
committed
test: remove intermediate cast
1 parent 2feca0c commit 7800774

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unittest/python/test_user_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
def test(dtype):
1111
rng = np.random.default_rng()
12-
mat = np.array(np.ones((rows, cols)).astype(np.int32), dtype=dtype)
12+
mat = np.array(np.ones((rows, cols)), dtype=dtype)
1313
mat = rng.random((rows, cols)).astype(dtype)
1414
mat_copy = mat.copy()
1515
assert (mat == mat_copy).all()

0 commit comments

Comments
 (0)