From 2e40a8b3ca520fbb53cdb0a6239a0d03c8fd27bc Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Sat, 20 Jan 2018 12:04:28 -0200 Subject: [PATCH] Fix test_caplog_captures_for_all_stages by setting log level --- testing/logging/test_fixture.py | 1 + 1 file changed, 1 insertion(+) diff --git a/testing/logging/test_fixture.py b/testing/logging/test_fixture.py index fcd231867..68953a257 100644 --- a/testing/logging/test_fixture.py +++ b/testing/logging/test_fixture.py @@ -101,6 +101,7 @@ def test_clear(caplog): @pytest.fixture def logging_during_setup_and_teardown(caplog): + caplog.set_level('INFO') logger.info('a_setup_log') yield logger.info('a_teardown_log')