diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-12-18 22:44:59 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-12-18 22:44:59 (GMT) |
commit | f23e3f7ad200d571de55b3b429f14c8704d50c48 (patch) | |
tree | d7c209fccb76bce09025b78f85dd623083421364 /Lib/test/test_socket.py | |
parent | dcac718236519de86f79cbb00fa745a97c7381e3 (diff) | |
parent | d5a070f586ab31693996f1b6ed5de3447472177c (diff) | |
download | cpython-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.py | 9 |
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, |