mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-114099: Add test exclusions to support running the test suite on iOS (#114889)
Add test annotations required to run the test suite on iOS (PEP 730). The majority of the change involve annotating tests that use subprocess, but are skipped on Emscripten/WASI for other reasons, and including iOS/tvOS/watchOS under the same umbrella as macOS/darwin checks. `is_apple` and `is_apple_mobile` test helpers have been added to identify *any* Apple platform, and "any Apple platform except macOS", respectively.
This commit is contained in:
parent
15f6f048a6
commit
391659b3da
31 changed files with 224 additions and 150 deletions
|
@ -31,7 +31,7 @@ import urllib.parse
|
|||
|
||||
from test.support import (
|
||||
SHORT_TIMEOUT, check_disallow_instantiation, requires_subprocess,
|
||||
is_emscripten, is_wasi
|
||||
is_apple, is_emscripten, is_wasi
|
||||
)
|
||||
from test.support import gc_collect
|
||||
from test.support import threading_helper
|
||||
|
@ -667,7 +667,7 @@ class OpenTests(unittest.TestCase):
|
|||
cx.execute(self._sql)
|
||||
|
||||
@unittest.skipIf(sys.platform == "win32", "skipped on Windows")
|
||||
@unittest.skipIf(sys.platform == "darwin", "skipped on macOS")
|
||||
@unittest.skipIf(is_apple, "skipped on Apple platforms")
|
||||
@unittest.skipIf(is_emscripten or is_wasi, "not supported on Emscripten/WASI")
|
||||
@unittest.skipUnless(TESTFN_UNDECODABLE, "only works if there are undecodable paths")
|
||||
def test_open_with_undecodable_path(self):
|
||||
|
@ -713,7 +713,7 @@ class OpenTests(unittest.TestCase):
|
|||
cx.execute(self._sql)
|
||||
|
||||
@unittest.skipIf(sys.platform == "win32", "skipped on Windows")
|
||||
@unittest.skipIf(sys.platform == "darwin", "skipped on macOS")
|
||||
@unittest.skipIf(is_apple, "skipped on Apple platforms")
|
||||
@unittest.skipIf(is_emscripten or is_wasi, "not supported on Emscripten/WASI")
|
||||
@unittest.skipUnless(TESTFN_UNDECODABLE, "only works if there are undecodable paths")
|
||||
def test_open_undecodable_uri(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue