Work around a Python bug in the warnings module to fix sporadic failures on test_ufuncs (witnessed with a 32-bit setup)