diff --git a/testing/logging/test_reporting.py b/testing/logging/test_reporting.py index 90db8813e..744a384f7 100644 --- a/testing/logging/test_reporting.py +++ b/testing/logging/test_reporting.py @@ -54,6 +54,7 @@ def test_root_logger_affected(testdir): """ import logging logger = logging.getLogger() + def test_foo(): logger.info('info text ' + 'going to logger') logger.warning('warning text ' + 'going to logger') diff --git a/testing/test_terminal.py b/testing/test_terminal.py index 1f3fff8c5..e8590b1ba 100644 --- a/testing/test_terminal.py +++ b/testing/test_terminal.py @@ -660,7 +660,6 @@ class TestTerminalFunctional(object): ) def test_verbose_reporting(self, verbose_testfile, testdir, pytestconfig): - result = testdir.runpytest( verbose_testfile, "-v", "-Walways::pytest.PytestWarning" )