-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
plugin: loggingrelated to the logging builtin pluginrelated to the logging builtin plugintype: bugproblem that needs to be addressedproblem that needs to be addressed
Milestone
Description
In Pytest 3.3, the following test case fails:
def test_default_level(self):
self.assertEqual(logging.getLogger().getEffectiveLevel(),
logging.WARNING)
It passes in Pytest 3.2. The Python documentation (https://docs.python.org/3.6/library/logging.html#logging.Logger.setLevel) says that the root logger is created with level WARNING, so I believe this is a bug in pytest.
I think this is likely related to #2974 .
Metadata
Metadata
Assignees
Labels
plugin: loggingrelated to the logging builtin pluginrelated to the logging builtin plugintype: bugproblem that needs to be addressedproblem that needs to be addressed