]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-148292: Remove shutdown() test in test_ssl.test_got_eof() (#149366)
authorVictor Stinner <vstinner@python.org>
Mon, 4 May 2026 14:20:25 +0000 (16:20 +0200)
committerGitHub <noreply@github.com>
Mon, 4 May 2026 14:20:25 +0000 (14:20 +0000)
The shutdown() behavior depends too much on the operating system and
it's unrelated to the got_eof_error change.

Lib/test/test_ssl.py

index 97975db3bf49fb770124d1cf72738569f2e6526a..f1f7a07701de1650dbc480b716118db021462ec3 100644 (file)
@@ -5074,14 +5074,6 @@ class ThreadedTests(unittest.TestCase):
                 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,