Skip to content

Commit d057453

Browse files
committed
assert type
1 parent b8cee3f commit d057453

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/link/mlx/test_math.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import numpy as np
22

33
import pytensor
4-
import tests.link.mlx.test_basic # noqa: F401
54
from pytensor.tensor.type import matrix
5+
from tests.link.mlx.test_basic import mx
66

77

88
def test_mlx_dot():
@@ -19,5 +19,6 @@ def test_mlx_dot():
1919
test_y = rng.normal(size=(2, 4))
2020

2121
actual = fn(test_x, test_y)
22+
assert isinstance(actual, mx.array)
2223
expected = np.dot(test_x, test_y)
2324
np.testing.assert_allclose(actual, expected, rtol=1e-6)

0 commit comments

Comments
 (0)