
From: Simon Glass <sjg@chromium.org> When no hook scripts are found, log the PYTHONPATH to aid debugging. Use a separate variable to avoid an error on Python 3.10 and a pylint 3.3.4 warning: E0001: Parsing failed: 'f-string expression part cannot include a backslash (conftest, line 311)' (syntax-error) Signed-off-by: Simon Glass <sjg@chromium.org> --- test/py/conftest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/py/conftest.py b/test/py/conftest.py index 16f28db6e23..8b198c93ccc 100644 --- a/test/py/conftest.py +++ b/test/py/conftest.py @@ -312,6 +312,8 @@ def pytest_configure(config): log.info(f"Loaded {module}") if not_found: + paths = '\n'.join(sys.path) + log.info(f"PYTHONPATH: {paths}") log.warning(f"Failed to find modules: {' '.join(not_found)}") ubconfig.buildconfig = dict() -- 2.43.0