8000 [3.14] gh-134632: Add iOS/Android test skip for C API check for heade… · python/cpython@562f6d1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 562f6d1

Browse files
[3.14] gh-134632: Add iOS/Android test skip for C API check for headers. (GH-135656) (#135657)
iOS and Android don't ship headers in the testbed, so we can't test for their existence. (cherry picked from commit 1c7efaf) Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
1 parent 52cb287 commit 562f6d1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Lib/test/test_build_details.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,20 @@ def test_location(self):
117117
# Override generic format tests with tests for our specific implemenation.
118118

119119
@needs_installed_python
120-
@unittest.skipIf(is_android or is_apple_mobile, 'Android and iOS run tests via a custom testbed method that changes sys.executable')
120+
@unittest.skipIf(
121+
is_android or is_apple_mobile,
122+
'Android and iOS run tests via a custom testbed method that changes sys.executable'
123+
)
121124
def test_base_interpreter(self):
122125
value = self.key('base_interpreter')
123126

124127
self.assertEqual(os.path.realpath(value), os.path.realpath(sys.executable))
125128

126129
@needs_installed_python
130+
@unittest.skipIf(
131+
is_android or is_apple_mobile,
132+
"Android and iOS run tests via a custom testbed method that doesn't ship headers"
133+
)
127134
def test_c_api(self):
128135
value = self.key('c_api')
129136
self.assertTrue(os.path.exists(os.path.join(value['headers'], 'Python.h')))

0 commit comments

Comments
 (0)
0