gh-71052: Add test exclusions to support running the test suite on Android (#115918)

This commit is contained in:
Malcolm Smith 2024-02-29 21:32:50 +00:00 committed by GitHub
parent 83c5ecdeec
commit 41d5391c55
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 58 additions and 27 deletions

View file

@ -129,7 +129,8 @@ class TestFcntl(unittest.TestCase):
fcntl.fcntl(BadFile(INT_MIN - 1), fcntl.F_SETFL, os.O_NONBLOCK)
@unittest.skipIf(
platform.machine().startswith('arm') and platform.system() == 'Linux',
any(platform.machine().startswith(name) for name in {"arm", "aarch"})
and platform.system() in {"Linux", "Android"},
"ARM Linux 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