Skip to content

Commit

Permalink
test: remove intermediate cast
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarpent committed Jan 3, 2025
1 parent 60ee0d4 commit 64c37a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unittest/python/test_user_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

def test(dtype):
rng = np.random.default_rng()
mat = np.array(np.ones((rows, cols)).astype(np.int32), dtype=dtype)
mat = np.array(np.ones((rows, cols)), dtype=dtype)
mat = rng.random((rows, cols)).astype(dtype)
mat_copy = mat.copy()
assert (mat == mat_copy).all()
Expand Down

0 comments on commit 64c37a4

Please sign in to comment.