Skip to content

Commit 73808cf

Browse files
committed
fix test for change(?) in BoundsError exception for setfield
1 parent b7f09a7 commit 73808cf

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
@@ -2269,7 +2269,7 @@ f9534d(x) = (a=(1,2,4,6,7); a[x])
22692269
@test try; f9534d() catch ex; (ex::BoundsError).a === (1,2,4,6,7) && ex.i == 7; end
22702270
@test try; f9534d(-1) catch ex; (ex::BoundsError).a === (1,2,4,6,7) && ex.i == -1; end
22712271
f9534e(x) = (a=IOBuffer(); setfield!(a, x, 3))
2272-
@test try; f9534e(-2) catch ex; isa((ex::BoundsError).a,Base.IOBuffer) && ex.i == -2; end
2272+
@test try; f9534e(-2) catch ex; (ex::BoundsError).a == Base.IOBuffer && ex.i == -2; end
22732273
f9534f() = (a=IOBuffer(); getfield(a, -2))
22742274
f9534f(x) = (a=IOBuffer(); getfield(a, x))
22752275
@test try; f9534f() catch ex; isa((ex::BoundsError).a,Base.IOBuffer) && ex.i == -2; end

0 commit comments

Comments
 (0)