class documentation

class TestSysconfig: (source)

View In Hierarchy

Undocumented

Method customize_compiler Undocumented
Method test_customize_compiler Undocumented
Method test_customize_compiler_before_get_config_vars Undocumented
Method test_get_config_h_filename Undocumented
Method test_get_config_vars Undocumented
Method test_get_makefile_filename Undocumented
Method test_get_python_inc_missing_config_dir In portable Python installations, the sysconfig will be broken, pointing to the directories where the installation was built and not where it currently is. In this case, ensure that the missing directory isn't used for get_python_inc.
Method test_get_python_lib Undocumented
Method test_parse_config_h Undocumented
Method test_parse_makefile_base Undocumented
Method test_parse_makefile_literal_dollar Undocumented
Method test_SO_deprecation Undocumented
Method test_srcdir_independent_of_cwd srcdir should be independent of the current working directory
Method test_srcdir_python_build Undocumented
Method test_srcdir_simple Undocumented
Method test_sysconfig_compiler_vars Undocumented
Method test_sysconfig_module Undocumented
Method test_win_build_venv_from_source_tree Ensure distutils.sysconfig detects venvs from source tree builds.
Method test_win_ext_suffix Undocumented
def customize_compiler(self): (source)

Undocumented

@pytest.mark.skipif('get_default_compiler() != \'unix\'')
def test_customize_compiler(self): (source)

Undocumented

def test_customize_compiler_before_get_config_vars(self, tmp_path): (source)

Undocumented

def test_get_config_h_filename(self): (source)

Undocumented

def test_get_config_vars(self): (source)

Undocumented

@pytest.mark.skipif('platform.system() == \'Windows\'')
@pytest.mark.skipif('sys.implementation.name != \'cpython\'')
def test_get_makefile_filename(self): (source)

Undocumented

def test_get_python_inc_missing_config_dir(self, monkeypatch): (source)

In portable Python installations, the sysconfig will be broken, pointing to the directories where the installation was built and not where it currently is. In this case, ensure that the missing directory isn't used for get_python_inc. See pypa/distutils#178.

def test_get_python_lib(self, tmp_path): (source)

Undocumented

def test_parse_config_h(self): (source)

Undocumented

def test_parse_makefile_base(self, tmp_path): (source)

Undocumented

def test_parse_makefile_literal_dollar(self, tmp_path): (source)

Undocumented

@pytest.mark.skipif('not sysconfig.get_config_var(\'EXT_SUFFIX\')')
def test_SO_deprecation(self): (source)

Undocumented

def test_srcdir_independent_of_cwd(self): (source)

srcdir should be independent of the current working directory

@pytest.mark.skipif('sysconfig.IS_PYPY')
@pytest.mark.skipif('not sysconfig.python_build')
def test_srcdir_python_build(self): (source)

Undocumented

@pytest.mark.skipif('sysconfig.IS_PYPY')
@pytest.mark.skipif('sysconfig.python_build')
@pytest.mark.xfail('platform.system() == "Windows"')
def test_srcdir_simple(self): (source)

Undocumented

@pytest.mark.skipif('sysconfig.get_config_var(\'CUSTOMIZED_OSX_COMPILER\')')
def test_sysconfig_compiler_vars(self): (source)

Undocumented

def test_sysconfig_module(self): (source)

Undocumented

@pytest.mark.skipif('platform.system() != \'Windows\'')
@pytest.mark.skipif('sys.implementation.name != \'cpython\'')
@pytest.mark.skipif(('\\PCbuild\\'.casefold() not in sys.executable.casefold()), reason='Need sys.executable to be in a source tree')
def test_win_build_venv_from_source_tree(self, tmp_path): (source)

Ensure distutils.sysconfig detects venvs from source tree builds.

@pytest.mark.skipif('platform.system() != \'Windows\'')
@pytest.mark.skipif('sys.implementation.name != \'cpython\'')
def test_win_ext_suffix(self): (source)

Undocumented