Skip to content

Commit eb34357

Browse files
committed
fix tests
1 parent 3283ca8 commit eb34357

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tree_math/_src/numpy_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def test_where_all_scalars(self):
4949
actual = tnp.where(True, 1, 2)
5050
self.assertTreeEqual(actual, expected, check_dtypes=False)
5151
with self.assertRaisesRegex(
52-
TypeError, "non-tree_math.Vector argument is not a scalar",
52+
TypeError, "non-tree_math.VectorBase argument is not a scalar",
5353
):
5454
tnp.where(True, jnp.array([1, 2]), 3)
5555

tree_math/_src/vector_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def test_arithmetic_with_scalar(self):
5858
self.assertTreeEqual(vector + 1, expected, check_dtypes=True)
5959
self.assertTreeEqual(1 + vector, expected, check_dtypes=True)
6060
with self.assertRaisesRegex(
61-
TypeError, "non-tree_math.Vector argument is not a scalar",
61+
TypeError, "non-tree_math.VectorBase argument is not a scalar",
6262
):
6363
vector + jnp.ones((3,)) # pylint: disable=expression-not-assigned
6464

@@ -123,7 +123,7 @@ def test_matmul(self):
123123
self.assertAllClose(actual, expected)
124124

125125
with self.assertRaisesRegex(
126-
TypeError, "matmul arguments must both be tree_math.Vector objects",
126+
TypeError, "matmul arguments must both be tree_math.VectorBase objects",
127127
):
128128
vector1 @ jnp.ones((7,)) # pylint: disable=expression-not-assigned
129129

0 commit comments

Comments
 (0)