Skip to content

Commit

Permalink
Add tests and fix
Browse files Browse the repository at this point in the history
  • Loading branch information
omus committed Jan 28, 2018
1 parent 5f3025d commit 41eb20f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Compat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,10 @@ else
end

if VERSION < v"0.7.0-DEV.3476"
const Serialization = Base.Serializer
@eval module Serialization
import Base.Serializer: serialize, deserialize, SerializationState
export serialize, deserialize, SerializationState
end
else
import Serialization
end
Expand Down
3 changes: 3 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1196,6 +1196,9 @@ module TestSerialization
using Compat.Serialization
using Compat.Test
@test isdefined(@__MODULE__, :Serialization)
@test isdefined(@__MODULE__, :serialize)
@test isdefined(@__MODULE__, :deserialize)
@test isdefined(@__MODULE__, :SerializationState)
end

if VERSION < v"0.6.0"
Expand Down

0 comments on commit 41eb20f

Please sign in to comment.