Changeset 5357109 in mod_gnutls for test/tests/06_invalid_plaintext


Ignore:
Timestamp:
Oct 8, 2020, 3:28:49 PM (10 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
asyncio, master
Children:
83b5bf6
Parents:
c26a163
Message:

Fix flake8 warnings in test hooks.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/tests/06_invalid_plaintext/hooks.py

    rc26a163 r5357109  
    1313class TLSRecord:
    1414    header = struct.Struct('!BHH')
     15
    1516    def __init__(self, data):
    1617        self.type, self.legacy_proto, self.length = \
     
    4849    """Send an HTTPS request and then plaintext on the same TCP connection"""
    4950    with contextlib.ExitStack() as stack:
    50         s = stack.enter_context(socket.socket(socket.AF_INET, socket.SOCK_STREAM))
     51        s = stack.enter_context(
     52            socket.socket(socket.AF_INET, socket.SOCK_STREAM))
    5153        s.connect((host, port))
    5254
     
    6466        buf = bytearray(2048)
    6567        pos = 0
    66         while not CRLF in buf:
     68        while CRLF not in buf:
    6769            received = tls_sock.recv_into(memoryview(buf)[pos:])
    6870            # If we get 0 it means the connection ended before the
Note: See TracChangeset for help on using the changeset viewer.