https://github.com/python/cpython/commit/1e21cf6fee3830012e458c0fe5dbc6fcd45ace92
commit: 1e21cf6fee3830012e458c0fe5dbc6fcd45ace92
branch: main
author: Victor Stinner <[email protected]>
committer: vstinner <[email protected]>
date: 2026-05-04T14:20:25Z
summary:
gh-148292: Remove shutdown() test in test_ssl.test_got_eof() (#149366)
The shutdown() behavior depends too much on the operating system and
it's unrelated to the got_eof_error change.
files:
M Lib/test/test_ssl.py
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index 97975db3bf49fb..f1f7a07701de16 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -5074,14 +5074,6 @@ def test_got_eof(self):
sslsock.do_handshake()
self.assertEqual(sslsock.pending(), 0)
- try:
- sslsock.shutdown(socket.SHUT_WR)
- except OSError as exc:
- self.assertEqual(exc.errno, errno.ENOTCONN)
- else:
- # On Windows and on OpenSSL 1.1.1, shutdown() doesn't
- # raise an error
- pass
@unittest.skipUnless(has_tls_version('TLSv1_3') and ssl.HAS_PHA,
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]