[tests] Update fma3 check to work with Py3.