Skip to content

Commit

Permalink
Fix test deprecation warning on 0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
TotalVerb committed Jan 8, 2017
1 parent 416cfbf commit efaafb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
julia 0.4
Compat 0.8.4
Compat 0.9.5
4 changes: 3 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using JSON
using Base.Test
using Compat
import Compat: String

import DataStructures
import FixedPointNumbers: Fixed

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit efaafb7

Please sign in to comment.