Skip to content

Commit 83b09e2

Browse files
committed
fix test for change(?) in BoundsError exception for setfield
1 parent 56d5306 commit 83b09e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/core.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2238,7 +2238,7 @@ f9534d(x) = (a=(1,2,4,6,7); a[x])
22382238
@test try; f9534d() catch ex; (ex::BoundsError).a === (1,2,4,6,7) && ex.i == 7; end
22392239
@test try; f9534d(-1) catch ex; (ex::BoundsError).a === (1,2,4,6,7) && ex.i == -1; end
22402240
f9534e(x) = (a=IOBuffer(); setfield!(a, x, 3))
2241-
@test try; f9534e(-2) catch ex; isa((ex::BoundsError).a,Base.IOBuffer) && ex.i == -2; end
2241+
@test try; f9534e(-2) catch ex; (ex::BoundsError).a == Base.IOBuffer && ex.i == -2; end
22422242
f9534f() = (a=IOBuffer(); getfield(a, -2))
22432243
f9534f(x) = (a=IOBuffer(); getfield(a, x))
22442244
@test try; f9534f() catch ex; isa((ex::BoundsError).a,Base.IOBuffer) && ex.i == -2; end

0 commit comments

Comments
 (0)