Skip to content

Commit 1e21cf6

Browse files
authored
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.
1 parent 6e6f905 commit 1e21cf6

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

Lib/test/test_ssl.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5074,14 +5074,6 @@ def test_got_eof(self):
50745074
sslsock.do_handshake()
50755075

50765076
self.assertEqual(sslsock.pending(), 0)
5077-
try:
5078-
sslsock.shutdown(socket.SHUT_WR)
5079-
except OSError as exc:
5080-
self.assertEqual(exc.errno, errno.ENOTCONN)
5081-
else:
5082-
# On Windows and on OpenSSL 1.1.1, shutdown() doesn't
5083-
# raise an error
5084-
pass
50855077

50865078

50875079
@unittest.skipUnless(has_tls_version('TLSv1_3') and ssl.HAS_PHA,

0 commit comments

Comments
 (0)