mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-71052: Change Android's sys.platform
from "linux" to "android"
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
This commit is contained in:
parent
9f983e00ec
commit
872c0714fc
24 changed files with 97 additions and 81 deletions
|
@ -3533,9 +3533,8 @@ class ProgramPriorityTests(unittest.TestCase):
|
|||
class TestSendfile(unittest.IsolatedAsyncioTestCase):
|
||||
|
||||
DATA = b"12345abcde" * 16 * 1024 # 160 KiB
|
||||
SUPPORT_HEADERS_TRAILERS = not sys.platform.startswith("linux") and \
|
||||
not sys.platform.startswith("solaris") and \
|
||||
not sys.platform.startswith("sunos")
|
||||
SUPPORT_HEADERS_TRAILERS = (
|
||||
not sys.platform.startswith(("linux", "android", "solaris", "sunos")))
|
||||
requires_headers_trailers = unittest.skipUnless(SUPPORT_HEADERS_TRAILERS,
|
||||
'requires headers and trailers support')
|
||||
requires_32b = unittest.skipUnless(sys.maxsize < 2**32,
|
||||
|
@ -5256,7 +5255,7 @@ class ForkTests(unittest.TestCase):
|
|||
else:
|
||||
assert_python_ok("-c", code, PYTHONMALLOC="malloc_debug")
|
||||
|
||||
@unittest.skipUnless(sys.platform in ("linux", "darwin"),
|
||||
@unittest.skipUnless(sys.platform in ("linux", "android", "darwin"),
|
||||
"Only Linux and macOS detect this today.")
|
||||
def test_fork_warns_when_non_python_thread_exists(self):
|
||||
code = """if 1:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue