From: Russell Keith-Magee Date: Tue, 19 Nov 2024 10:01:54 +0000 (+0800) Subject: [3.12] gh-126789: Correct sysconfig test exclusions for iOS and Android. (GH-126941... X-Git-Tag: v3.12.8~51 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1f911ba7061feb4ee072cdd0da0e3be8c41fd690;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-126789: Correct sysconfig test exclusions for iOS and Android. (GH-126941) (GH-126959) (cherry picked from commit 3938fd60c0c88891b213097380aeea91a45bcd77) --- diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py index b91977d0cc76..3468d0ce022a 100644 --- a/Lib/test/test_sysconfig.py +++ b/Lib/test/test_sysconfig.py @@ -520,7 +520,7 @@ class TestSysConfig(unittest.TestCase): suffix = sysconfig.get_config_var('EXT_SUFFIX') self.assertTrue(suffix.endswith('-darwin.so'), suffix) - @unittest.skipIf(sys.platform == 'wasi', 'venv is unsupported on WASI') + @requires_subprocess() def test_config_vars_depend_on_site_initialization(self): script = textwrap.dedent(""" import sysconfig @@ -544,7 +544,7 @@ class TestSysConfig(unittest.TestCase): self.assertEqual(no_site_config_vars['base'], site_config_vars['installed_base']) self.assertEqual(no_site_config_vars['platbase'], site_config_vars['installed_platbase']) - @unittest.skipIf(sys.platform == 'wasi', 'venv is unsupported on WASI') + @requires_subprocess() def test_config_vars_recalculation_after_site_initialization(self): script = textwrap.dedent(""" import sysconfig @@ -568,7 +568,7 @@ class TestSysConfig(unittest.TestCase): #self.assertEqual(config_vars['after']['prefix'], venv.prefix) # FIXME: prefix gets overwriten by _init_posix #self.assertEqual(config_vars['after']['exec_prefix'], venv.prefix) # FIXME: exec_prefix gets overwriten by _init_posix - @unittest.skipIf(sys.platform == 'wasi', 'venv is unsupported on WASI') + @requires_subprocess() def test_paths_depend_on_site_initialization(self): script = textwrap.dedent(""" import sysconfig