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 jackdied
Recipients jackdied
Date 2009-07-26.23:26:05
SpamBayes Score 0.0001250298
Marked as misclassified No
Message-id <>
Marking as easy.  What needs to be done is to add a small fake socket
class that redefines socket.sendall(self, bytes) to capture the args to
sock.sendall so it can be assertEqual'd to the expected bytes.

class SocketSendall(socket.socket):
  _raw_sent = b''
  def sendall(self, data):
    self._raw_sent += data

class TelnetSockSendall(telnetlib.Telnet):
  def open(self, *args, **opts):
    ''' a near-exact copy of '''
    # copy 5 lines from here
    self.sock = SocketSendall(*args, **opts)

then add a unit test that checks the ONLY thing Telnet.write() does,
which is change IAC to IAC+IAC.
Date User Action Args
2009-07-26 23:26:08jackdiedsetrecipients: + jackdied
2009-07-26 23:26:07jackdiedsetmessageid: <>
2009-07-26 23:26:05jackdiedlinkissue6582 messages
2009-07-26 23:26:05jackdiedcreate