Error message differs on py2 and py3.