I am using it on the class level. But for C function need to test raising the warning too. Maybe this dance around really is not worth it and I should just move the catch warning, etc. out of the class setUp/tearDown. I don't particularly love this anyway, just can't think of a nicer way...