Skip to content

Commit 1c7efaf

Browse files
authored
gh-134632: Add iOS/Android test skip for C API check for headers. (#135656)
iOS and Android don't ship headers in the testbed, so we can't test for their existence.
1 parent 01c80b2 commit 1c7efaf

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)