BF: fix warnings testing for Python 3.4

A terribly confusing change of behavior in Python 3.4, work round with a
test function.
Merge pull request #266 from matthew-brett/fix-warns-testing

MRG: fix warnings testing for Python 3.4

Work round confusing change in warnings record in Python 3.4