Pytests: removed exception strings from checking because they depend on the boost python version.