Skip to content

Commit 6759946

Browse files
committed
More noodling
1 parent 6c74dc3 commit 6759946

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

tests/test_dimension.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1504,10 +1504,13 @@ def test_stepping_dim_in_condition_lowering(self):
15041504
part2 = 'g[t1][x + 1][y + 1] = g[t0][x + 1][y + 1] + 1'
15051505
whole_code = str(op.ccode)
15061506

1507-
loc = whole_code.find(part1)
1508-
assert loc != -1
1509-
loc = whole_code.find(part2, loc + len(part1))
1510-
assert loc != -1
1507+
try:
1508+
loc = whole_code.find(part1)
1509+
assert loc != -1
1510+
loc = whole_code.find(part2, loc + len(part1))
1511+
assert loc != -1
1512+
except AssertionError as e:
1513+
raise AssertionError(whole_code) from e
15111514

15121515
def test_expr_like_lowering(self):
15131516
"""

0 commit comments

Comments
 (0)