Author: Armin Rigo <[email protected]> Branch: py3.5 Changeset: r89705:7ade09ee3ac5 Date: 2017-01-23 18:11 +0100 http://bitbucket.org/pypy/pypy/changeset/7ade09ee3ac5/
Log: See https://hg.python.org/cpython/rev/9791c5d55f52: it's just another similar case diff --git a/lib-python/3/test/test_asyncio/test_events.py b/lib-python/3/test/test_asyncio/test_events.py --- a/lib-python/3/test/test_asyncio/test_events.py +++ b/lib-python/3/test/test_asyncio/test_events.py @@ -825,9 +825,15 @@ server = self.loop.run_until_complete(f) self.assertEqual(len(server.sockets), 1) sock = server.sockets[0] - self.assertFalse( - sock.getsockopt( - socket.SOL_SOCKET, socket.SO_REUSEPORT)) + try: + self.assertFalse( + sock.getsockopt( + socket.SOL_SOCKET, socket.SO_REUSEPORT)) + except OSError: + raise unittest.SkipTest( + "Python's socket module was compiled using modern headers " + "thus defining SO_REUSEPORT but this process is running " + "under an older kernel that does not support SO_REUSEPORT.") server.close() test_utils.run_briefly(self.loop) _______________________________________________ pypy-commit mailing list [email protected] https://mail.python.org/mailman/listinfo/pypy-commit
