Skip to content

Commit a735682

Browse files
baggepinnenpcjentsch
authored andcommitted
Add compat to @test_throws (JuliaLang#45893)
closes JuliaLang#45892
1 parent 6f87624 commit a735682

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stdlib/Test/src/Test.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,9 @@ a matching function,
682682
or a value (which will be tested for equality by comparing fields).
683683
Note that `@test_throws` does not support a trailing keyword form.
684684
685+
!!! compat "Julia 1.8"
686+
The ability to specify anything other than a type or a value as `exception` requires Julia v1.8 or later.
687+
685688
# Examples
686689
```jldoctest
687690
julia> @test_throws BoundsError [1, 2, 3][4]

0 commit comments

Comments
 (0)