@@ -480,51 +480,75 @@ def test_tls_client_auth( # noqa: C901, WPS213 # FIXME
480480 expected_substrings += (
481481 (
482482 "bad handshake: SysCallError(10054, 'WSAECONNRESET')" ,
483- "('Connection aborted.', "
484- 'OSError("(10054, \' WSAECONNRESET\' )"))' ,
485- "('Connection aborted.', "
486- 'OSError("(10054, \' WSAECONNRESET\' )",))' ,
487- "('Connection aborted.', "
488- 'error("(10054, \' WSAECONNRESET\' )",))' ,
489- "('Connection aborted.', "
490- 'ConnectionResetError(10054, '
491- "'An existing connection was forcibly closed "
492- "by the remote host', None, 10054, None))" ,
493- "('Connection aborted.', "
494- 'error(10054, '
495- "'An existing connection was forcibly closed "
496- "by the remote host'))" ,
483+ (
484+ "('Connection aborted.', "
485+ 'OSError("(10054, \' WSAECONNRESET\' )"))'
486+ ),
487+ (
488+ "('Connection aborted.', "
489+ 'OSError("(10054, \' WSAECONNRESET\' )",))'
490+ ),
491+ (
492+ "('Connection aborted.', "
493+ 'error("(10054, \' WSAECONNRESET\' )",))'
494+ ),
495+ (
496+ "('Connection aborted.', "
497+ 'ConnectionResetError(10054, '
498+ "'An existing connection was forcibly closed "
499+ "by the remote host', None, 10054, None))"
500+ ),
501+ (
502+ "('Connection aborted.', "
503+ 'error(10054, '
504+ "'An existing connection was forcibly closed "
505+ "by the remote host'))"
506+ ),
497507 )
498508 if IS_WINDOWS
499509 else (
500- "('Connection aborted.', "
501- 'OSError("(104, \' ECONNRESET\' )"))' ,
502- "('Connection aborted.', "
503- 'OSError("(104, \' ECONNRESET\' )",))' ,
510+ (
511+ "('Connection aborted.', "
512+ 'OSError("(104, \' ECONNRESET\' )"))'
513+ ),
514+ (
515+ "('Connection aborted.', "
516+ 'OSError("(104, \' ECONNRESET\' )",))'
517+ ),
504518 "('Connection aborted.', error(\" (104, 'ECONNRESET')\" ,))" ,
505- "('Connection aborted.', "
506- "ConnectionResetError(104, 'Connection reset by peer'))" ,
507- "('Connection aborted.', "
508- "error(104, 'Connection reset by peer'))" ,
519+ (
520+ "('Connection aborted.', "
521+ "ConnectionResetError(104, 'Connection reset by peer'))"
522+ ),
523+ (
524+ "('Connection aborted.', "
525+ "error(104, 'Connection reset by peer'))"
526+ ),
509527 )
510528 if (IS_GITHUB_ACTIONS_WORKFLOW and IS_LINUX )
511529 else (
512- "('Connection aborted.', "
513- "BrokenPipeError(32, 'Broken pipe'))" ,
530+ (
531+ "('Connection aborted.', "
532+ "BrokenPipeError(32, 'Broken pipe'))"
533+ ),
514534 )
515535 )
516536
517537 if PY310_PLUS :
518538 # FIXME: Figure out what's happening and correct the problem
519539 expected_substrings += (
520- 'SSLError(SSLEOFError(8, '
521- "'EOF occurred in violation of protocol (_ssl.c:" ,
540+ (
541+ 'SSLError(SSLEOFError(8, '
542+ "'EOF occurred in violation of protocol (_ssl.c:"
543+ ),
522544 )
523545 if IS_GITHUB_ACTIONS_WORKFLOW and IS_WINDOWS and PY310_PLUS :
524546 expected_substrings += (
525- "('Connection aborted.', "
526- 'RemoteDisconnected('
527- "'Remote end closed connection without response'))" ,
547+ (
548+ "('Connection aborted.', "
549+ 'RemoteDisconnected('
550+ "'Remote end closed connection without response'))"
551+ ),
528552 )
529553
530554 assert any (e in err_text for e in expected_substrings )
@@ -662,8 +686,10 @@ def test_ssl_env( # noqa: C901 # FIXME
662686 pytest .xfail (
663687 '\n ' .join (
664688 (
665- 'Sometimes this test fails due to '
666- 'a socket.socket ResourceWarning:' ,
689+ (
690+ 'Sometimes this test fails due to '
691+ 'a socket.socket ResourceWarning:'
692+ ),
667693 msg ,
668694 ),
669695 ),
0 commit comments