Skip to content

Commit 404b414

Browse files
committed
Merge pull request #12809 from JuliaLang/ird/rmtestfails
Remove deprecated test_fails
2 parents 2504ef2 + 4f6c4f6 commit 404b414

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

base/test.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module Test
44

5-
export @test, @test_fails, @test_throws, @test_approx_eq, @test_approx_eq_eps, @inferred
5+
export @test, @test_throws, @test_approx_eq, @test_approx_eq_eps, @inferred
66

77
abstract Result
88
type Success <: Result
@@ -106,11 +106,6 @@ macro test_throws(args...)
106106
:(do_test_throws(()->($(esc(ex))),$(Expr(:quote,ex)),backtrace(),$(esc(extype))))
107107
end
108108

109-
macro test_fails(ex)
110-
Base.warn_once("@test_fails is deprecated, use @test_throws instead.")
111-
:(@test_throws $ex Exception)
112-
end
113-
114109
approx_full(x::AbstractArray) = x
115110
approx_full(x::Number) = x
116111
approx_full(x) = full(x)

0 commit comments

Comments
 (0)