Skip to content

Commit

Permalink
pythongh-126789: Correct sysconfig test exclusions for iOS and Androi…
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 authored Nov 18, 2024
1 parent ce453e6 commit 3938fd6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Lib/test/test_sysconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ def test_osx_ext_suffix(self):
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
Expand All @@ -615,7 +615,7 @@ def test_config_vars_depend_on_site_initialization(self):
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
Expand All @@ -639,7 +639,7 @@ def test_config_vars_recalculation_after_site_initialization(self):
#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
Expand All @@ -656,7 +656,7 @@ def test_paths_depend_on_site_initialization(self):

self.assertNotEqual(site_paths, no_site_paths)

@unittest.skipIf(sys.platform == 'wasi', 'venv is unsupported on WASI')
@requires_subprocess()
def test_makefile_overwrites_config_vars(self):
script = textwrap.dedent("""
import sys, sysconfig
Expand Down Expand Up @@ -689,6 +689,7 @@ def test_makefile_overwrites_config_vars(self):
self.assertNotEqual(data['prefix'], data['base_prefix'])
self.assertNotEqual(data['exec_prefix'], data['base_exec_prefix'])


class MakefileTests(unittest.TestCase):

@unittest.skipIf(sys.platform.startswith('win'),
Expand Down

0 comments on commit 3938fd6

Please sign in to comment.