mirror of https://github.com/pallets/flask.git
restore the logging plugin only if it was active to begin with
This commit is contained in:
parent
e30c39fe78
commit
33fa580947
|
|
@ -29,7 +29,8 @@ def reset_logging(monkeypatch):
|
|||
logger.handlers = []
|
||||
logger.setLevel(logging.NOTSET)
|
||||
|
||||
pytest.config.pluginmanager.register(logging_plugin, 'logging-plugin')
|
||||
if logging_plugin:
|
||||
pytest.config.pluginmanager.register(logging_plugin, 'logging-plugin')
|
||||
|
||||
|
||||
def test_logger(app):
|
||||
|
|
|
|||
Loading…
Reference in New Issue