Browse Source

restore the logging plugin only if it was active to begin with

pull/2554/head
Camilo 7 years ago
parent
commit
33fa580947
  1. 1
      tests/test_logging.py

1
tests/test_logging.py

@ -29,6 +29,7 @@ def reset_logging(monkeypatch):
logger.handlers = []
logger.setLevel(logging.NOTSET)
if logging_plugin:
pytest.config.pluginmanager.register(logging_plugin, 'logging-plugin')

Loading…
Cancel
Save