Skip to content

Commit 276bd2f

Browse files
committed
pythongh-148292: Remove shutdown() test in test_ssl.test_got_eof() (python#149366)
The shutdown() behavior depends too much on the operating system and it's unrelated to the got_eof_error change. (cherry picked from commit 1e21cf6)
1 parent bd3a782 commit 276bd2f

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
@@ -4820,14 +4820,6 @@ def test_got_eof(self):
48204820
sslsock.do_handshake()
48214821

48224822
self.assertEqual(sslsock.pending(), 0)
4823-
try:
4824-
sslsock.shutdown(socket.SHUT_WR)
4825-
except OSError as exc:
4826-
self.assertEqual(exc.errno, errno.ENOTCONN)
4827-
else:
4828-
# On Windows and on OpenSSL 1.1.1, shutdown() doesn't
4829-
# raise an error
4830-
pass
48314823

48324824

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

0 commit comments

Comments
 (0)