Skip to content

Conversation

@c42f
Copy link
Member

@c42f c42f commented Nov 12, 2020

disable_logging() manipulates a global setting so it may interfere with
any other concurrent tests. Instead, use the @test_logs macro to
capture logs (which internally uses with_logger).

I've also chosen to specifically test that a warning is produced here
(rather than just use @test_logs min_level=Error which would be more
like without_warnings()).

CC @Keno I assume this may fix the problems you're seeing in Base tests. I don't actually know what they were :-)

disable_logging() manipulates a global setting so it may interfere with
any other concurrent tests.  Instead, use the @test_logs macro to
capture logs.

I've also chosen to specifically test that a warning is produced here
(rather than just use @test_logs min_level=Error which would be more
like without_warnings()).
@codecov-io
Copy link

codecov-io commented Nov 12, 2020

Codecov Report

Merging #3 (df9aa86) into master (738dc1e) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master        #3   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         3           
  Lines           64        64           
=========================================
  Hits            64        64           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 738dc1e...df9aa86. Read the comment docs.

@StefanKarpinski StefanKarpinski merged commit bbb05b2 into JuliaLang:master Nov 12, 2020
@StefanKarpinski
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants