This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xdegaye
Recipients vinay.sajip, vstinner, xdegaye
Date 2016-04-20.10:28:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1461148122.22.0.754712328998.issue26803@psf.upfronthosting.co.za>
In-reply-to
Content
The SysLogHandlerTest class instantiates a 'server_class' that eventually calls the
server_bind() method of the TCPServer class of the socketserver module.

This server_bind() method executes the statements:

    self.socket.bind(self.server_address)
    self.server_address = self.socket.getsockname()

and when self.server_address is a string and contains a null byte, then
getsockname() returns a bytes object.

So finally, self.server in SysLogHandlerTest is a bytes object in this case,
hence the needed to fix Lib/logging/handlers.py.
History
Date User Action Args
2016-04-20 10:28:42xdegayesetrecipients: + xdegaye, vinay.sajip, vstinner
2016-04-20 10:28:42xdegayesetmessageid: <1461148122.22.0.754712328998.issue26803@psf.upfronthosting.co.za>
2016-04-20 10:28:42xdegayelinkissue26803 messages
2016-04-20 10:28:42xdegayecreate