Catch warnings in tightlayout test.

These are warnings that are raised because tightlayout does not work
fully automatic on gridspec. However, the point of the test is doing
this with some manual help so this works as expected.