Skip to content

Commit

Permalink
Fix Markdown test from #49454 (#51268)
Browse files Browse the repository at this point in the history
Actually testing the output instead of printing to stdout.
  • Loading branch information
yuyichao authored Sep 11, 2023
1 parent b9203ce commit ad27e67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/Markdown/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit ad27e67

Please sign in to comment.