https://github.com/python/cpython/commit/1c7efaf58a62d848421b2da97360ba3df7d7856b
commit: 1c7efaf58a62d848421b2da97360ba3df7d7856b
branch: main
author: Russell Keith-Magee <[email protected]>
committer: freakboy3742 <[email protected]>
date: 2025-06-18T14:21:14+08:00
summary:
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.
files:
M Lib/test/test_build_details.py
diff --git a/Lib/test/test_build_details.py b/Lib/test/test_build_details.py
index 33ade161fb5058..ba4b8c5aa9b58e 100644
--- a/Lib/test/test_build_details.py
+++ b/Lib/test/test_build_details.py
@@ -117,13 +117,20 @@ def test_location(self):
# Override generic format tests with tests for our specific implemenation.
@needs_installed_python
- @unittest.skipIf(is_android or is_apple_mobile, 'Android and iOS run tests
via a custom testbed method that changes sys.executable')
+ @unittest.skipIf(
+ is_android or is_apple_mobile,
+ 'Android and iOS run tests via a custom testbed method that changes
sys.executable'
+ )
def test_base_interpreter(self):
value = self.key('base_interpreter')
self.assertEqual(os.path.realpath(value),
os.path.realpath(sys.executable))
@needs_installed_python
+ @unittest.skipIf(
+ is_android or is_apple_mobile,
+ "Android and iOS run tests via a custom testbed method that doesn't
ship headers"
+ )
def test_c_api(self):
value = self.key('c_api')
self.assertTrue(os.path.exists(os.path.join(value['headers'],
'Python.h')))
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]