

def dgram_examine(self, proto, addr):
    s = socket.socket(proto, socket.SOCK_DGRAM)
    s.sendto(TEST_STR, addr)
    buf = data = receive(s, 100)
    while (data and (b'\n' not in buf)):
        data = receive(s, 100)
        buf += data
    self.assertEqual(buf, TEST_STR)
    proto.close()

dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_socketserver.py SocketServerTest.dgram_examine/VarMisuse@84/98 `s`->`proto`