Skip to content

Commit 17d36d8

Browse files
committed
Change error message to that raised from Numba
1 parent e1940f7 commit 17d36d8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/tensor/rewriting/test_basic.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import copy
2+
import re
23

34
import numpy as np
45
import pytest
@@ -306,7 +307,9 @@ def test_inconsistent_shared(self, shape_unsafe):
306307
# Error raised by Alloc Op
307308
with pytest.raises(
308309
ValueError,
309-
match=r"could not broadcast input array from shape \(3,7\) into shape \(6,7\)",
310+
match=re.escape(
311+
"cannot assign slice of shape (3, 7) from input of shape (6, 7)"
312+
),
310313
):
311314
f()
312315

0 commit comments

Comments
 (0)