diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py --- a/Lib/test/test_asyncio/test_base_events.py +++ b/Lib/test/test_asyncio/test_base_events.py @@ -8,6 +8,7 @@ import sys import threading import time +import platform import unittest from unittest import mock @@ -1490,7 +1491,8 @@ reuse_address_default_on = ( os.name == 'posix' and sys.platform != 'cygwin') - reuseport_supported = hasattr(socket, 'SO_REUSEPORT') + reuseport_supported = (hasattr(socket, 'SO_REUSEPORT') and + not platform.android_ver()[0]) if reuse_address_default_on: self.assertTrue( diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py --- a/Lib/test/test_asyncio/test_events.py +++ b/Lib/test/test_asyncio/test_events.py @@ -817,7 +817,8 @@ # close server server.close() - @unittest.skipUnless(hasattr(socket, 'SO_REUSEPORT'), 'No SO_REUSEPORT') + @unittest.skipUnless(hasattr(socket, 'SO_REUSEPORT') and + not platform.android_ver()[0], 'No SO_REUSEPORT') def test_create_server_reuse_port(self): proto = MyProto(self.loop) f = self.loop.create_server(