class documentation

class TestInstallScripts: (source)

View In Hierarchy

Undocumented

Method test_executable_arg_escaping_win32 Ensure that shebang on Windows is quoted when getting a path with spaces from --executable, that is itself properly quoted.
Method test_executable_with_spaces_escaping_unix Ensure that shebang on Unix is not quoted, even when a value with spaces is specified using --executable.
Method test_sys_executable_escaping_unix Ensure that shebang is not quoted on Unix when getting the Python exe from sys.executable.
Method test_sys_executable_escaping_win32 Ensure that shebang is quoted on Windows when getting the Python exe from sys.executable and it contains a space.
Class Variable settings Undocumented
Class Variable unix_exe Undocumented
Class Variable unix_spaces_exe Undocumented
Class Variable win32_exe Undocumented
Method _run_install_scripts Undocumented
@pytest.mark.skipif((sys.platform != 'win32'), reason='Windows only')
def test_executable_arg_escaping_win32(self, tmpdir): (source)

Ensure that shebang on Windows is quoted when getting a path with spaces from --executable, that is itself properly quoted.

@pytest.mark.skipif((sys.platform == 'win32'), reason='non-Windows only')
def test_executable_with_spaces_escaping_unix(self, tmpdir): (source)

Ensure that shebang on Unix is not quoted, even when a value with spaces is specified using --executable.

@pytest.mark.skipif((sys.platform == 'win32'), reason='non-Windows only')
def test_sys_executable_escaping_unix(self, tmpdir, monkeypatch): (source)

Ensure that shebang is not quoted on Unix when getting the Python exe from sys.executable.

@pytest.mark.skipif((sys.platform != 'win32'), reason='Windows only')
def test_sys_executable_escaping_win32(self, tmpdir, monkeypatch): (source)

Ensure that shebang is quoted on Windows when getting the Python exe from sys.executable and it contains a space.

settings = (source)

Undocumented

unix_exe: str = (source)

Undocumented

unix_spaces_exe: str = (source)

Undocumented

win32_exe: str = (source)

Undocumented

def _run_install_scripts(self, install_dir, executable=None): (source)

Undocumented