Skip to content

Commit bc4fccd

Browse files
committed
Fix type for numpy random in tests
1 parent 1c3a9af commit bc4fccd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_cmdstan_args.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ def test_args_good() -> None:
345345

346346
# integer type
347347
rng = np.random.default_rng(42)
348-
seed = rng.integers(low=0, high=int(1e7))
348+
seed = int(rng.integers(low=0, high=int(1e7)))
349349
assert not isinstance(seed, int)
350350
assert isinstance(seed, np.integer)
351351

0 commit comments

Comments
 (0)