diff options
author | Skip Montanaro <skip.montanaro@gmail.com> | 2024-01-02 21:29:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-02 21:29:08 (GMT) |
commit | bab0758ea4a1d4666a973ae2d65f21a09e4478ba (patch) | |
tree | e94e8c2b3718bf0a53b7939a84fe81b4d07901f3 | |
parent | 50b093f5c7060c0b44c264808411346cee7becf0 (diff) | |
download | cpython-bab0758ea4a1d4666a973ae2d65f21a09e4478ba.zip cpython-bab0758ea4a1d4666a973ae2d65f21a09e4478ba.tar.gz cpython-bab0758ea4a1d4666a973ae2d65f21a09e4478ba.tar.bz2 |
gh-110824 Temporarily skip test_sysconfig.test_library on macOS framework builds. (GH-113298)
Co-authored-by: Ned Deily <nad@python.org>
-rw-r--r-- | Lib/test/test_sysconfig.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py index a19c04b..be609a0 100644 --- a/Lib/test/test_sysconfig.py +++ b/Lib/test/test_sysconfig.py @@ -43,6 +43,7 @@ class TestSysConfig(unittest.TestCase): self.name = os.name self.platform = sys.platform self.version = sys.version + self._framework = sys._framework self.sep = os.sep self.join = os.path.join self.isabs = os.path.isabs @@ -66,6 +67,7 @@ class TestSysConfig(unittest.TestCase): os.name = self.name sys.platform = self.platform sys.version = self.version + sys._framework = self._framework os.sep = self.sep os.path.join = self.join os.path.isabs = self.isabs @@ -139,7 +141,7 @@ class TestSysConfig(unittest.TestCase): # Mac, framework build. os.name = 'posix' sys.platform = 'darwin' - sys._framework = True + sys._framework = "MyPython" self.assertIsInstance(schemes, dict) self.assertEqual(set(schemes), expected_schemes) @@ -413,7 +415,10 @@ class TestSysConfig(unittest.TestCase): else: self.assertTrue(library.startswith(f'libpython{major}.{minor}')) self.assertTrue(library.endswith('.a')) - self.assertTrue(ldlibrary.startswith(f'libpython{major}.{minor}')) + if sys.platform == 'darwin' and sys._framework: + self.skipTest('gh-110824: skip LDLIBRARY test for framework build') + else: + self.assertTrue(ldlibrary.startswith(f'libpython{major}.{minor}')) @unittest.skipUnless(sys.platform == "darwin", "test only relevant on MacOSX") @requires_subprocess() |