Christian Heimes added the comment: Jim, yes I agree. In a matter of fact, the ssl module also agrees with you and behaves like that for a while. I cannot reproduce the problem with either 2.7, 3.5, or 3.6. I have attached an demo script.
check_hostname = True * server_hostname='www.python.org' OK * server_hostname='': Exception: check_hostname requires server_hostname * no server_hostname: Exception: check_hostname requires server_hostname check_hostname = False * server_hostname='www.python.org' OK * server_hostname='' OK * no server_hostname OK ---------- resolution: -> works for me status: open -> pending versions: +Python 2.7 -Python 3.5 Added file: http://bugs.python.org/file47124/bpo27391.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27391> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com