[issue22861] [2.7] ssl._dnsname_match() and unicode
STINNER Victor
report at bugs.python.org
Thu Nov 13 14:05:29 CET 2014
STINNER Victor added the comment:
I worked around this issue by expecting a different error message on Python 2 and Python 3:
https://bitbucket.org/enovance/trollius/commits/be404685d3fd8ba008e1a577438dc6f23b01c63a?at=trollius
+ if compat.PY3:
+ err_msg = "hostname '127.0.0.1' doesn't match 'localhost'"
+ else:
+ # http://bugs.python.org/issue22861
+ err_msg = "hostname '127.0.0.1' doesn't match u'localhost'"
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22861>
_______________________________________
More information about the Python-bugs-list
mailing list