From 0dc1213565e76d9c68986489ada3c06b928089d5 Mon Sep 17 00:00:00 2001 From: Marcin Niestroj Date: Sat, 16 Sep 2023 09:01:47 +0200 Subject: [PATCH] package/python-pytest: fix dependency on zlib tests.package.test_python_pytest.TestPythonPy3Pytest runtime tests fails now with following error: ====================================================================== FAIL: test_run (tests.package.test_python_pytest.TestPythonPy3Pytest.test_run) ---------------------------------------------------------------------- Traceback (most recent call last): File "/buildroot/support/testing/tests/package/test_python.py", line 137, in test_run self.run_sample_scripts() File "/buildroot/support/testing/tests/package/test_python_pytest.py", line 18, in run_sample_scripts self.assertRunOk(cmd, timeout=self.timeout) File "/buildroot/support/testing/infra/basetest.py", line 89, in assertRunOk self.assertEqual( AssertionError: 1 != 0 : Failed to run: python -m pytest sample_python_pytest.py output was: Traceback (most recent call last): File "", line 189, in _run_module_as_main File "", line 148, in _get_module_details File "", line 112, in _get_module_details File "/usr/lib/python3.11/site-packages/pytest/__init__.py", line 5, in File "/usr/lib/python3.11/site-packages/_pytest/_code/__init__.py", line 2, in File "/usr/lib/python3.11/site-packages/_pytest/_code/code.py", line 36, in File "/usr/lib/python3.11/site-packages/pluggy/__init__.py", line 16, in File "/usr/lib/python3.11/site-packages/pluggy/_manager.py", line 10, in File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 8, in File "/usr/lib/python3.11/zipfile.py", line 6, in ImportError: libz.so.1: cannot open shared object file: No such file or directory Fix that by adding BR2_PACKAGE_PYTHON3_ZLIB dependency. Signed-off-by: Marcin Niestroj Signed-off-by: Yann E. MORIN --- package/python-pytest/Config.in | 1 + 1 file changed, 1 insertion(+) diff --git a/package/python-pytest/Config.in b/package/python-pytest/Config.in index 9bbc9ea2d2..c8f9a6eb5b 100644 --- a/package/python-pytest/Config.in +++ b/package/python-pytest/Config.in @@ -6,6 +6,7 @@ config BR2_PACKAGE_PYTHON_PYTEST select BR2_PACKAGE_PYTHON_PLUGGY # runtime select BR2_PACKAGE_PYTHON_PY # runtime select BR2_PACKAGE_PYTHON3_PYEXPAT # runtime + select BR2_PACKAGE_PYTHON3_ZLIB # runtime help pytest is a framework that makes building simple and scalable tests easy. Tests are expressive and readable—no boilerplate