Skip to content

Commit 23f6ebe

Browse files
committed
open(cmd) now returns Process instead of Tuple
JuliaLang/julia#12807
1 parent 472f091 commit 23f6ebe

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/real-open.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ let
2121
@test read((@mock open("foo")), String) == "bar"
2222

2323
# The more specific `open(::AbstractString)` patches only a single method
24-
io, pobj = @mock open(`echo helloworld`)
24+
result = @mock open(`echo helloworld`)
25+
if VERSION >= v"0.7.0-DEV.3"
26+
io = result
27+
else
28+
io, pobj = result
29+
end
2530
@test read(io, String) == "helloworld\n"
2631
end
2732
end

0 commit comments

Comments
 (0)