From 8f4813e2730f8ae6102f55401caab6bc2b9fba5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hozza?= Date: Thu, 27 Feb 2025 13:41:43 +0100 Subject: [PATCH] Test/tools/depsolve: reword function doc text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tomáš Hozza --- tools/test/test_depsolve.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/test/test_depsolve.py b/tools/test/test_depsolve.py index dcde3b6e..3ba1bf92 100644 --- a/tools/test/test_depsolve.py +++ b/tools/test/test_depsolve.py @@ -44,9 +44,10 @@ def is_license_expression_available(): """ Check if the license-expression package is available. - The check is not done by importing the package in the current Python environment, because it may be - running inside a virtual environment where the package is / is not installed. Instead, the check is done by - running a Python script outside the virtual environment. + The check is not done by importing the package in the current Python environment, because "osbuild-depsolve-dnf" + is run outside of any virtualenv that that the tests may run in. It is inside "osbuild-depsolve-dnf" where + the import for "license_expression" happens. Therefore the check is done by running an external Python script + outside the potential virtualenv. For the same reason, we don't use `sys.executable` to run the script, because it may point to a different Python interpreter than the one that will be used when `osbuild-depsolve-dnf` is executed.