We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 472f091 commit 23f6ebeCopy full SHA for 23f6ebe
test/real-open.jl
@@ -21,7 +21,12 @@ let
21
@test read((@mock open("foo")), String) == "bar"
22
23
# The more specific `open(::AbstractString)` patches only a single method
24
- io, pobj = @mock open(`echo helloworld`)
+ 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
30
@test read(io, String) == "helloworld\n"
31
end
32
0 commit comments