test_depsolve: Use host environment's /usr/bin/python3

Using just 'python3' uses the venv version when running from tox which
fails even when libdnf5 is available in the host environment.
This commit is contained in:
Brian C. Lane 2024-04-22 11:36:22 -07:00 committed by Simon de Vlieger
parent 562d30cf59
commit eca54c03ab

View file

@ -23,7 +23,7 @@ TEST_KEY = "-----BEGIN PGP PUBLIC KEY BLOCK-----\nTEST KEY\n"
def has_dnf5():
return sp.run(["python3", "-c", "import libdnf5"], check=False).returncode == 0
return sp.run(["/usr/bin/python3", "-c", "import libdnf5"], check=False).returncode == 0
def has_dnf():