@@ -489,9 +489,9 @@ def test_set_sigalgs_list_invalid_name(self, context):
489
489
490
490
def test_set_sigalgs_list_not_supported (self ):
491
491
"""
492
- If no signature algorithms supported by the server are set, the handshake
493
- fails with a `"no suitable signature algorithm"` reason string,
494
- or 'no shared cipher' on older OpenSSL releases.
492
+ If no signature algorithms supported by the server are set,
493
+ the handshake fails with a `"no suitable signature algorithm"`
494
+ reason string, or 'no shared cipher' on older OpenSSL releases.
495
495
"""
496
496
497
497
def make_client (socket ):
@@ -506,8 +506,8 @@ def make_client(socket):
506
506
507
507
def test_get_sigalgs (self ):
508
508
"""
509
- `Connection.get_sigalgs` returns the signature algorithms send by the client to the server.
510
- This is supported only in TLS1_2 and later.
509
+ `Connection.get_sigalgs` returns the signature algorithms send by
510
+ the client to the server. This is supported only in TLS1_2 and later.
511
511
"""
512
512
def make_client (socket ):
513
513
context = Context (TLSv1_2_METHOD )
@@ -517,7 +517,8 @@ def make_client(socket):
517
517
return c
518
518
519
519
srv , client = loopback (
520
- server_factory = lambda s : loopback_server_factory (s , TLSv1_2_METHOD ),
520
+ server_factory = lambda s : loopback_server_factory (s ,
521
+ TLSv1_2_METHOD ),
521
522
client_factory = make_client )
522
523
523
524
sigalgs = srv .get_sigalgs ()
0 commit comments