diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-01-30 16:07:24 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-01-30 17:35:57 +0100 |
commit | bb8693a45074c0e4b72b9b3f9b697299e855f071 (patch) | |
tree | 733a254bcdee3349b44fdc62a1f410203ebd40cf /dev-python/pypdf/pypdf-4.0.1.ebuild | |
parent | dev-python/trio: Backport a musl fix (diff) | |
download | gentoo-bb8693a45074c0e4b72b9b3f9b697299e855f071.tar.gz gentoo-bb8693a45074c0e4b72b9b3f9b697299e855f071.tar.bz2 gentoo-bb8693a45074c0e4b72b9b3f9b697299e855f071.zip |
dev-python/pypdf: Backport pytest-8 test fixes
Closes: https://bugs.gentoo.org/923251
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pypdf/pypdf-4.0.1.ebuild')
-rw-r--r-- | dev-python/pypdf/pypdf-4.0.1.ebuild | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/dev-python/pypdf/pypdf-4.0.1.ebuild b/dev-python/pypdf/pypdf-4.0.1.ebuild index 3035c819ee29..766a25f1da60 100644 --- a/dev-python/pypdf/pypdf-4.0.1.ebuild +++ b/dev-python/pypdf/pypdf-4.0.1.ebuild @@ -37,13 +37,9 @@ BDEPEND=" distutils_enable_tests pytest -EPYTEST_DESELECT=( - tests/test_reader.py::test_decode_permissions - tests/test_workflows.py::test_text_extraction_layout_mode - # rely on -Werror - tests/test_utils.py::test_deprecate_no_replacement - tests/test_workflows.py::test_orientations - tests/test_writer.py::test_remove_image_per_type +PATCHES=( + # https://github.com/py-pdf/pypdf/pull/2429 + "${FILESDIR}/${P}-pytest-8.patch" ) src_unpack() { @@ -54,6 +50,15 @@ src_unpack() { } python_test() { + local EPYTEST_DESELECT=( + tests/test_reader.py::test_decode_permissions + tests/test_workflows.py::test_text_extraction_layout_mode + # rely on -Werror + tests/test_utils.py::test_deprecate_no_replacement + tests/test_workflows.py::test_orientations + tests/test_writer.py::test_remove_image_per_type + ) + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 epytest -o addopts= -m "not enable_socket" } |