BF: fix warnings testing for Python 3.4

A terribly confusing change of behavior in Python 3.4, work round with a test
function.