Skip to content

Commit 55aec36

Browse files
committed
Use devnull instead of Pipe()
Our only goal is to suppress output
1 parent c71b851 commit 55aec36

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/snoopi_deep.jl

+2-3
Original file line numberDiff line numberDiff line change
@@ -913,20 +913,19 @@ end
913913
@test sig == mi_stale
914914
@test convert(Core.MethodInstance, root) == Core.MethodInstance(only(hits)) == methodinstance(StaleB.useA, ())
915915
# What happens when we can't find it in the tree?
916-
pipe = Pipe() # suppress warning
917916
if any(isequal("verify_methods"), invalidations)
918917
# The 1.9+ format
919918
invscopy = copy(invalidations)
920919
idx = findlast(==("verify_methods"), invscopy)
921920
invscopy[idx+1] = 22
922-
redirect_stderr(pipe) do
921+
redirect_stderr(devnull) do
923922
broken_trees = invalidation_trees(invscopy)
924923
@test isempty(precompile_blockers(broken_trees, tinf))
925924
end
926925
else
927926
# The older format
928927
idx = findfirst(isequal("jl_method_table_insert"), invalidations)
929-
redirect_stdout(pipe) do
928+
redirect_stdout(devnull) do
930929
broken_trees = invalidation_trees(invalidations[idx+1:end])
931930
@test isempty(precompile_blockers(broken_trees, tinf))
932931
end

0 commit comments

Comments
 (0)