From eca54c03ab0b8bf43c6a8b01f60d3c169616fbc1 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Mon, 22 Apr 2024 11:36:22 -0700 Subject: [PATCH] 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. --- tools/test/test_depsolve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/test/test_depsolve.py b/tools/test/test_depsolve.py index 2c97862e..b53ecc5f 100644 --- a/tools/test/test_depsolve.py +++ b/tools/test/test_depsolve.py @@ -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():