When running the tests on Python 3, it gets really annoying to see
so many logging messages and tracebacks, even though the tests are
running fine. This patch improves the situation by catching all the
log messages that are emitted during tests execution.
Change-Id: Idc62081b768676cc861fb7c53f18175879807e56