diff --git a/README.md b/README.md index 25a3b9b8b..ca79f39ed 100644 --- a/README.md +++ b/README.md @@ -61,9 +61,6 @@ Currently, the `@compat` macro supports the following syntaxes: * `using Compat.SparseArrays` is provided on versions older than 0.7, where this library is not yet part of the standard library ([#25249]). -* `using Compat.LinearAlgebra` is provided on versions older than 0.7, where this library is - not yet part of the standard library ([#25571]). - * `using Compat.Random` is provided on versions older than 0.7, where this library is not yet part of the standard library ([#24874]). diff --git a/src/Compat.jl b/src/Compat.jl index 956f679a3..db252624e 100644 --- a/src/Compat.jl +++ b/src/Compat.jl @@ -24,16 +24,11 @@ import Dates import Libdl const AbstractDateTime = Compat.Dates.AbstractDateTime import Printf +import LinearAlgebra include("compatmacro.jl") -@static if VERSION < v"0.7.0-DEV.3449" - const LinearAlgebra = Base.LinAlg -else - import LinearAlgebra -end - if VERSION < v"0.7.0-DEV.3389" const SparseArrays = Base.SparseArrays else diff --git a/test/old.jl b/test/old.jl index 426802080..0c359008a 100644 --- a/test/old.jl +++ b/test/old.jl @@ -117,6 +117,11 @@ module Test25056 @test isdefined(@__MODULE__, Symbol("@sprintf")) end +# 0.7.0-DEV.3449 +let A = [2.0 1.0; 1.0 3.0], b = [2.0, 3.0] + @test diag(A) == b +end + # tests of removed functionality (i.e. justs tests Base) diff --git a/test/runtests.jl b/test/runtests.jl index 7ccea8296..52cfcd848 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -249,11 +249,6 @@ end # 0.7.0-DEV.912 @test occursin('W', "Hello, World!") -# 0.7.0-DEV.3449 -let A = [2.0 1.0; 1.0 3.0], b = [2.0, 3.0] - @test diag(A) == b -end - # 0.7.0-DEV.3173 @test invpermute!(permute!([1, 2], 2:-1:1), 2:-1:1) == [1, 2]