summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_socket.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-12-18 22:44:59 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-12-18 22:44:59 (GMT)
commitf23e3f7ad200d571de55b3b429f14c8704d50c48 (patch)
treed7c209fccb76bce09025b78f85dd623083421364 /Lib/test/test_socket.py
parentdcac718236519de86f79cbb00fa745a97c7381e3 (diff)
parentd5a070f586ab31693996f1b6ed5de3447472177c (diff)
downloadcpython-f23e3f7ad200d571de55b3b429f14c8704d50c48.zip
cpython-f23e3f7ad200d571de55b3b429f14c8704d50c48.tar.gz
cpython-f23e3f7ad200d571de55b3b429f14c8704d50c48.tar.bz2
Silence sporadic failure in RecvmsgIntoSCTPStreamTest.testRecvmsgEOF (issue #13876) - probably not Python-related.
Diffstat (limited to 'Lib/test/test_socket.py')
-rw-r--r--Lib/test/test_socket.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index c0ccb5d..e5d9dbc 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -3305,7 +3305,14 @@ class RecvmsgSCTPStreamTest(RecvmsgTests, RecvmsgGenericStreamTests,
@unittest.skipUnless(thread, 'Threading required for this test.')
class RecvmsgIntoSCTPStreamTest(RecvmsgIntoTests, RecvmsgGenericStreamTests,
SendrecvmsgSCTPStreamTestBase):
- pass
+
+ def testRecvmsgEOF(self):
+ try:
+ super(RecvmsgIntoSCTPStreamTest, self).testRecvmsgEOF()
+ except OSError as e:
+ if e.errno != errno.ENOTCONN:
+ raise
+ self.skipTest("sporadic ENOTCONN (kernel issue?) - see issue #13876")
class SendrecvmsgUnixStreamTestBase(SendrecvmsgConnectedBase,