diff --git a/src/Compat.jl b/src/Compat.jl index 89a82e829..8ea6bae76 100644 --- a/src/Compat.jl +++ b/src/Compat.jl @@ -701,4 +701,9 @@ if VERSION < v"0.5.0-dev+431" end end +if VERSION < v"0.5.0-dev+763" + export SparseArrays + const SparseArrays = Base.SparseMatrix +end + end # module diff --git a/test/runtests.jl b/test/runtests.jl index f7449ec6f..500d40e4f 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -529,6 +529,7 @@ f141(::Type{TCPSocket}) = true @test f141(OutOfMemoryError) @test f141(Base64EncodePipe) @test f141(UDPSocket) +@test f141(TCPSocket) # Union syntax if VERSION < v"0.4.0-dev+5379" @@ -541,3 +542,6 @@ end @test remotecall_fetch(() -> true, 1) @test fetch(remotecall_wait(() -> true, 1)) Base.remote_do(() -> true, 1) # Doesn't return anything so cannot be `@test`ed but should print some output if it fails + +# JuliaLang/julia#13440 +@test isa(SparseArrays, Module)