[3.6] bpo-33937: Catch ENOMEM error in test_socket (GH-9557) by miss-islington · Pull Request #9566 · python/cpython

@vstinner @miss-islington

Fix test_socket.SendmsgSCTPStreamTest: catch ENOMEM error.
testSendmsgTimeout() and testSendmsgDontWait() randomly fail on
Travis CI with: "OSError: [Errno 12] Cannot allocate memory".
(cherry picked from commit 46f40be)

Co-authored-by: Victor Stinner <vstinner@redhat.com>

vstinner