BF: make warning catching work with older mock (as in precise)