[issue24684] socket.getaddrinfo(host) doesn't ensure that host.encode() returns a byte string

Chris Angelico report at bugs.python.org
Fri Sep 11 11:39:08 CEST 2015


Chris Angelico added the comment:

Oops, forgot to add a test. Using a variant of poc_getaddr.py to construct something which fails on current CPython tip, and passes with the patch.

----------
Added file: http://bugs.python.org/file40435/dont_assert_with_test.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24684>
_______________________________________


More information about the Python-bugs-list mailing list