Ticket #4386: demo.patch

File demo.patch, 1.1 KB (added by moijes12, 4 years ago)

This is a demp patch.

  • twisted/internet/abstract.py

     
    155155
    156156    SEND_LIMIT = 128*1024
    157157
    158     implements(interfaces.IProducer, interfaces.IReadWriteDescriptor,
     158    implements(interfaces.IPushProducer, interfaces.IReadWriteDescriptor,
    159159               interfaces.IConsumer, interfaces.ITransport, interfaces.IHalfCloseableDescriptor)
    160160
    161161    def __init__(self, reactor=None):
  • twisted/internet/test/test_tcp.py

     
    361361        self.server.TLS = True
    362362        self.test_writeSequenceAfterDisconnect()
    363363
     364    def test_serverImplementsIPushProducer(self):
     365        """
     366        L{Server} implements L{IPushProducer}
     367        """
     368        self.assertEqual(IPushProducer.implementedBy(Server), True)
    364369
    365370
     371
    366372class TCPConnectionTests(TestCase):
    367373    """
    368374    Whitebox tests for L{twisted.internet.tcp.Connection}.