[issue22861] [2.7] ssl._dnsname_match() and unicode

2015-03-18 Thread STINNER Victor
STINNER Victor added the comment: I'm not convinced myself that it's a real issue, and I worked around it in Trollius, so I close the issue. -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org

[issue22861] [2.7] ssl._dnsname_match() and unicode

2014-11-13 Thread STINNER Victor
New submission from STINNER Victor: Hi, I just modified the Trollius project ( http://trollius.readthedocs.org/ ) to support Python 2.7 with the newly backported ssl module. I ran the test suite of the Trollius and some tests are failing because of the exact exception message. It looks like

[issue22861] [2.7] ssl._dnsname_match() and unicode

2014-11-13 Thread STINNER Victor
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'