Skip to content

Commit 18a75d0

Browse files
committed
replacing @capture_out with IOBuffer
1 parent 267be45 commit 18a75d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/named_array_partition_tests.jl

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ using RecursiveArrayTools, Test
1818

1919
x = NamedArrayPartition(a = ones(1), b = 2*ones(1))
2020
@test Base.summary(x) == string(typeof(x), " with arrays:")
21-
@test (@capture_out Base.show(stdout, MIME"text/plain"(), x)) == "(a = [1.0], b = [2.0])"
21+
io = IOBuffer()
22+
Base.show(io, MIME"text/plain"(), x)
23+
@test String(take!(io)) == "(a = [1.0], b = [2.0])"
2224

2325
using StructArrays
2426
using StaticArrays: SVector

0 commit comments

Comments
 (0)