diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-12-16 15:40:22 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-12-16 15:40:22 (GMT) |
commit | d2fc88bbde59c88cf7fd3ea0d5cb09f3fa92dcbb (patch) | |
tree | debcda43a663852c6215f98bc3d3dff0a5c6119c | |
parent | 742cd37ae56251783435d161e2a60629fff0bfc6 (diff) | |
parent | 92f8b0016e5f4be6f56136a78bb78028d1c74671 (diff) | |
download | cpython-d2fc88bbde59c88cf7fd3ea0d5cb09f3fa92dcbb.zip cpython-d2fc88bbde59c88cf7fd3ea0d5cb09f3fa92dcbb.tar.gz cpython-d2fc88bbde59c88cf7fd3ea0d5cb09f3fa92dcbb.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") |