From 110e4ba04aa221a645496cc62a704ef0043766e9 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 4 May 2026 15:45:52 +0200 Subject: [PATCH] gh-148292: Remove shutdown() test in test_ssl.test_got_eof() shutdown() behavior depends too much on the operating system and it's unrelated to the got_eof_error change. --- Lib/test/test_ssl.py | 8 -------- 1 file changed, 8 deletions(-) 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,