Attempt to fix debian 10 classic packages not being able to install PyGithub

This commit is contained in:
MKLeb 2023-09-06 18:42:12 -04:00 committed by Pedro Algarvio
parent b867063395
commit 1d1b0205c3

View file

@ -42,7 +42,7 @@ def wipe_pydeps(shell, install_salt, extras_pypath):
shutil.rmtree(dirname, ignore_errors=True)
def test_pip_install(salt_call_cli, install_salt):
def test_pip_install(salt_call_cli, install_salt, shell):
"""
Test pip.install and ensure module can use installed library
"""
@ -50,6 +50,15 @@ def test_pip_install(salt_call_cli, install_salt):
repo = "https://github.com/saltstack/salt.git"
try:
if (
install_salt.classic
and install_salt.distro_id == "debian"
and install_salt.distro_version == "10"
):
pip_upgrade = salt_call_cli.run(
"--local", "pip.install", "pip", "upgrade=True"
)
assert pip_upgrade.returncode == 0
install = salt_call_cli.run("--local", "pip.install", dep)
assert install.returncode == 0