From 41eb20f3986e0066648aabac3f32446d68554aa7 Mon Sep 17 00:00:00 2001 From: Curtis Vogt Date: Thu, 25 Jan 2018 15:22:40 -0600 Subject: [PATCH] Add tests and fix --- src/Compat.jl | 5 ++++- test/runtests.jl | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Compat.jl b/src/Compat.jl index 8c1efcb17..2ecdbd7a0 100644 --- a/src/Compat.jl +++ b/src/Compat.jl @@ -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 diff --git a/test/runtests.jl b/test/runtests.jl index 4944682d4..5280f827b 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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"