mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-116622: Test updates for Android (#117299)
- re-enable test_fcntl_64_bit on Linux aarch64, but disable it on all Android ABIs - use support.setswitchinterval in all relevant tests - skip test_fma_zero_result on Android x86_64 - accept EACCES when calling os.get_terminal_size on Android
This commit is contained in:
parent
6150bb2412
commit
1d3225ae05
8 changed files with 21 additions and 14 deletions
|
@ -131,9 +131,9 @@ class TestFcntl(unittest.TestCase):
|
|||
fcntl.fcntl(BadFile(INT_MIN - 1), fcntl.F_SETFL, os.O_NONBLOCK)
|
||||
|
||||
@unittest.skipIf(
|
||||
platform.machine().startswith(("arm", "aarch"))
|
||||
and platform.system() in ("Linux", "Android"),
|
||||
"ARM Linux returns EINVAL for F_NOTIFY DN_MULTISHOT")
|
||||
(platform.machine().startswith("arm") and platform.system() == "Linux")
|
||||
or platform.system() == "Android",
|
||||
"this platform returns EINVAL for F_NOTIFY DN_MULTISHOT")
|
||||
def test_fcntl_64_bit(self):
|
||||
# Issue #1309352: fcntl shouldn't fail when the third arg fits in a
|
||||
# C 'long' but not in a C 'int'.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue