Skip to content

Commit

Permalink
use iobuffer for quiet show in statsmodel test
Browse files Browse the repository at this point in the history
  • Loading branch information
kleinschmidt authored and maximerischard committed Sep 28, 2016
1 parent 899c9df commit 685d949
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/statsmodel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ ct = coeftable(m)
@test ct.rownms == ["(Intercept)", "x1", "x2", "x1 & x2"]

## show with coeftable defined
@show m
io = IOBuffer()
show(io, m)

## with categorical variables
d[:x1p] = PooledDataArray(d[:x1])
Expand All @@ -80,7 +81,6 @@ StatsBase.fit(::Type{DummyModTwo}, ::Matrix, ::Vector) = DummyModTwo("hello!")
Base.show(io::IO, m::DummyModTwo) = println(io, m.msg)

m2 = fit(DummyModTwo, f, d)
io = IOBuffer()
show(io, m2)

end

0 comments on commit 685d949

Please sign in to comment.