Skip to content

Commit

Permalink
open(cmd) now returns Process instead of Tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
omus committed Oct 31, 2017
1 parent 472f091 commit 23f6ebe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/real-open.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ let
@test read((@mock open("foo")), String) == "bar"

# The more specific `open(::AbstractString)` patches only a single method
io, pobj = @mock open(`echo helloworld`)
result = @mock open(`echo helloworld`)
if VERSION >= v"0.7.0-DEV.3"
io = result
else
io, pobj = result
end
@test read(io, String) == "helloworld\n"
end
end

0 comments on commit 23f6ebe

Please sign in to comment.