diff options
| author | Malcolm Smith <smith@chaquo.com> | 2024-03-27 16:53:27 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-27 16:53:27 (GMT) |
| commit | 74c8568d07719529b874897598d8b3bc25ff0434 (patch) | |
| tree | 43226bc05462471e4c05c7a160335aa3e752d2ea /Lib/test/test_asyncio | |
| parent | ce00de4c8cd39816f992e749c1074487d93abe9d (diff) | |
| download | cpython-74c8568d07719529b874897598d8b3bc25ff0434.zip cpython-74c8568d07719529b874897598d8b3bc25ff0434.tar.gz cpython-74c8568d07719529b874897598d8b3bc25ff0434.tar.bz2 | |
gh-71042: Add `platform.android_ver` (#116674)
Diffstat (limited to 'Lib/test/test_asyncio')
| -rw-r--r-- | Lib/test/test_asyncio/test_base_events.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py index 4cd872d..c14a0bb 100644 --- a/Lib/test/test_asyncio/test_base_events.py +++ b/Lib/test/test_asyncio/test_base_events.py @@ -3,6 +3,7 @@ import concurrent.futures import errno import math +import platform import socket import sys import threading @@ -1430,6 +1431,10 @@ class BaseEventLoopWithSelectorTests(test_utils.TestCase): self._test_create_connection_ip_addr(m_socket, False) @patch_socket + @unittest.skipIf( + support.is_android and platform.android_ver().api_level < 23, + "Issue gh-71123: this fails on Android before API level 23" + ) def test_create_connection_service_name(self, m_socket): m_socket.getaddrinfo = socket.getaddrinfo sock = m_socket.socket.return_value |
