Comment 2 for bug 1331973

Revision history for this message
Gary W. Smith (gary-w-smith) wrote :

As suggested in the review comments for https://review.openstack.org/#/c/115368, it would be appropriate to implement this via a context manager or your suggestion there of a decorator like:

@test.suppress_log(logging.CRITICAL, ("class1", "class2"))
    def test_method(self):