From efaafb7fb9d97376540691f6db96913e7a64f80d Mon Sep 17 00:00:00 2001 From: Fengyang Wang Date: Tue, 3 Jan 2017 22:55:19 -0500 Subject: [PATCH] Fix test deprecation warning on 0.6 --- REQUIRE | 2 +- test/runtests.jl | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/REQUIRE b/REQUIRE index 2e03691..ce3698b 100644 --- a/REQUIRE +++ b/REQUIRE @@ -1,2 +1,2 @@ julia 0.4 -Compat 0.8.4 +Compat 0.9.5 diff --git a/test/runtests.jl b/test/runtests.jl index 38e71e8..c03afd9 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,6 +1,8 @@ using JSON using Base.Test using Compat +import Compat: String + import DataStructures import FixedPointNumbers: Fixed @@ -245,7 +247,7 @@ type t109 end let iob = IOBuffer() JSON.print(iob, t109(1)) - @test get(JSON.parse(takebuf_string(iob)), "i", 0) == 1 + @test get(JSON.parse(String(take!(iob))), "i", 0) == 1 end # Check NaNs are printed correctly