Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/3] package/python-pytest: fix dependency on zlib
@ 2023-09-16  7:01 Marcin Niestroj
  2023-09-16  7:01 ` [Buildroot] [PATCH 2/3] package/python-pytest: bump to version 7.4.2 Marcin Niestroj
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Marcin Niestroj @ 2023-09-16  7:01 UTC (permalink / raw)
  To: buildroot; +Cc: James Hilliard, Marcin Niestroj, Asaf Kahlon

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 "<frozen runpy>", line 189, in _run_module_as_main
      File "<frozen runpy>", line 148, in _get_module_details
      File "<frozen runpy>", line 112, in _get_module_details
      File "/usr/lib/python3.11/site-packages/pytest/__init__.py", line 5, in <module>
      File "/usr/lib/python3.11/site-packages/_pytest/_code/__init__.py", line 2, in <module>
      File "/usr/lib/python3.11/site-packages/_pytest/_code/code.py", line 36, in <module>
      File "/usr/lib/python3.11/site-packages/pluggy/__init__.py", line 16, in <module>
      File "/usr/lib/python3.11/site-packages/pluggy/_manager.py", line 10, in <module>
      File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 8, in <module>
      File "/usr/lib/python3.11/zipfile.py", line 6, in <module>
    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 <m.niestroj@grinn-global.com>
---
 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
-- 
2.42.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-09-24 21:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-16  7:01 [Buildroot] [PATCH 1/3] package/python-pytest: fix dependency on zlib Marcin Niestroj
2023-09-16  7:01 ` [Buildroot] [PATCH 2/3] package/python-pytest: bump to version 7.4.2 Marcin Niestroj
2023-09-16  7:01 ` [Buildroot] [PATCH 3/3] package/python-pytest-asyncio: bump to version 0.21.1 Marcin Niestroj
2023-09-16 12:35 ` [Buildroot] [PATCH 1/3] package/python-pytest: fix dependency on zlib Yann E. MORIN
2023-09-24 21:02 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox