Skip to content

Commit 2231cda

Browse files
committed
fix other location-related nightly errors
1 parent 345dde6 commit 2231cda

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/limits.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ module EvalLimited end
9898
end
9999
@test 8 < EvalLimited.s < 50 # with Compiled(), 9 statements per iteration
100100
@test length(aborts) == 1
101-
@test aborts[1].at.line (2, 3, 4) # 2 corresponds to lowering of the for loop
101+
@test aborts[1].at.line (2, 3, 4, 5) # 2 corresponds to lowering of the for loop
102102

103103
# Now try again with recursive stack
104104
empty!(aborts)
@@ -117,8 +117,8 @@ module EvalLimited end
117117
@test length(aborts) == 1
118118
lin = aborts[1].at
119119
if lin.file == Symbol("fake.jl")
120-
@test lin.line (2, 3, 4)
120+
@test lin.line (2, 3, 4, 5)
121121
else
122-
@test lin.file == Symbol("range.jl") # if it aborts in `iterate`
122+
@test lin.method === :iterate || lin.method === :getproperty
123123
end
124124
end

0 commit comments

Comments
 (0)