From ad27e67b4f3b515c5c8795a4a098d95c792fcc3a Mon Sep 17 00:00:00 2001 From: Yichao Yu Date: Mon, 11 Sep 2023 17:15:25 -0400 Subject: [PATCH] Fix Markdown test from #49454 (#51268) Actually testing the output instead of printing to stdout. --- stdlib/Markdown/test/runtests.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/Markdown/test/runtests.jl b/stdlib/Markdown/test/runtests.jl index 19d821a0254d7..84f0868747567 100644 --- a/stdlib/Markdown/test/runtests.jl +++ b/stdlib/Markdown/test/runtests.jl @@ -1185,7 +1185,7 @@ Base.show(io::IO, ::Struct49454) = let buf = IOBuffer() ctx = IOContext(buf, :color => true, :displaysize => (displaysize(buf)[1], 10)) - show(stdout, MIME("text/plain"), md""" + show(ctx, MIME("text/plain"), md""" text without $(Struct49454()) underline. """) lines = split(String(take!(buf)), '\n')