From a521bca2dc83d7e9315f89cbe170eb032d67d7a6 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 1 Dec 2025 22:36:09 +0000 Subject: [PATCH] gnu: python-pyvirtualdisplay: Enable more tests. * gnu/packages/python-xyz.scm (python-pyvirtualdisplay): [arguments] : Rework skipped tests. [propagated-inputs]: Remove python-easyprocess and python-pillow. [native-inputs]: Remove python-wheel; add python-easyprocess. Change-Id: Ic23d47046b93a0120239fbdf9c3664e1ed2561bc --- gnu/packages/python-xyz.scm | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index db27517591ca9453157b610f0caca2baf0b4bf20..c0a0d50a98d349a8cc9ad5712186d30f54cea687 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -22659,18 +22659,30 @@ etc.") (build-system pyproject-build-system) (arguments (list + ;; tests: 27 passed, 8 deselected #:test-flags - #~(list "--ignore=tests/test_examples.py" - ;; OSError: Pillow was built without XCB support - "--ignore=tests/test_smart.py" - "--ignore=tests/test_smart2.py" - "--ignore=tests/test_smart_thread.py"))) - (native-inputs - (list python-entrypoint2 python-psutil python-pytest - python-setuptools python-vncdotool-bootstrap python-wheel - xmessage xorg-server-for-tests)) - (propagated-inputs - (list python-easyprocess python-pillow)) + ;; TODO: Add libxcb to python-pillow on the next python-team cycle. + ;; OSError: Pillow was built without XCB support + #~(list #$@(map (lambda (test) (string-append "--deselect=" + "tests/" + test)) + (list "test_smart.py::test_slowshot" + "test_smart.py::test_slowshot_with" + "test_smart.py::test_slowshot_nocrop" + "test_smart.py::test_slowshot_timeout" + "test_smart.py::test_slowshot_timeout_nocrop" + "test_smart2.py::test_double" + "test_smart_thread.py::test_smart" + "test_examples.py::test_screenshot"))))) + (native-inputs + (list python-easyprocess + python-entrypoint2 + python-psutil + python-pytest + python-setuptools + python-vncdotool-bootstrap + xmessage + xorg-server-for-tests)) (home-page "https://github.com/ponty/pyvirtualdisplay") (synopsis "Python wrapper for Xvfb, Xephyr and Xvnc") (description