def connected(proto):
                """
                Darn.  Kill it and try again, if there are any tries left.
                """
                proto.transport.loseConnection()
                if serverSockets:
                    return tryConnectFailure()
                self.fail("Could not fail to connect - could not test errno for that case.")

                Darn.  Kill it and try again, if there are any tries left.
                
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_tcp.py