diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-12-16 15:40:04 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-12-16 15:40:04 (GMT) |
commit | 92f8b0016e5f4be6f56136a78bb78028d1c74671 (patch) | |
tree | 490ca45fad1490ab262f90fbff9f170d8b88d286 | |
parent | fac4faf173deff062b4337153952a5727438b408 (diff) | |
download | cpython-92f8b0016e5f4be6f56136a78bb78028d1c74671.zip cpython-92f8b0016e5f4be6f56136a78bb78028d1c74671.tar.gz cpython-92f8b0016e5f4be6f56136a78bb78028d1c74671.tar.bz2 |
Silence sporadic failure in RecvmsgSCTPStreamTest.testRecvmsgEOF (issue #13876) - probably not Python-related.
-rw-r--r-- | Lib/test/test_socket.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index cb10921..0ce9729 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -3291,7 +3291,14 @@ class SendmsgSCTPStreamTest(SendmsgStreamTests, SendrecvmsgSCTPStreamTestBase): @unittest.skipUnless(thread, 'Threading required for this test.') class RecvmsgSCTPStreamTest(RecvmsgTests, RecvmsgGenericStreamTests, SendrecvmsgSCTPStreamTestBase): - pass + + def testRecvmsgEOF(self): + try: + super(RecvmsgSCTPStreamTest, self).testRecvmsgEOF() + except OSError as e: + if e.errno != errno.ENOTCONN: + raise + self.skipTest("sporadic ENOTCONN (kernel issue?) - see issue #13876") @requireAttrs(socket.socket, "recvmsg_into") @requireSocket("AF_INET", "SOCK_STREAM", "IPPROTO_SCTP") |