Skip to content

Commit bdedf62

Browse files
committed
Compat for SparseArrays. Ref JuliaLang/julia#13440
1 parent 659ac79 commit bdedf62

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/Compat.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,4 +701,9 @@ if VERSION < v"0.5.0-dev+431"
701701
end
702702
end
703703

704+
if VERSION < v"0.5.0-dev+763"
705+
export SparseArrays
706+
const SparseArrays = Base.SparseMatrix
707+
end
708+
704709
end # module

test/runtests.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ f141(::Type{TCPSocket}) = true
529529
@test f141(OutOfMemoryError)
530530
@test f141(Base64EncodePipe)
531531
@test f141(UDPSocket)
532+
@test f141(TCPSocket)
532533

533534
# Union syntax
534535
if VERSION < v"0.4.0-dev+5379"
@@ -541,3 +542,6 @@ end
541542
@test remotecall_fetch(() -> true, 1)
542543
@test fetch(remotecall_wait(() -> true, 1))
543544
Base.remote_do(() -> true, 1) # Doesn't return anything so cannot be `@test`ed but should print some output if it fails
545+
546+
# JuliaLang/julia#13440
547+
@test isa(SparseArrays, Module)

0 commit comments

Comments
 (0)