Summary: | dev-python/pypdf-4.0.1 fails tests with >=dev-python/pytest-8.0.0 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | mgorny |
Priority: | Normal | Keywords: | TESTFAILURE |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/py-pdf/pypdf/issues/2427 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 923268 | ||
Attachments: | build.log |
Description
Agostino Sarubbo
![]() Created attachment 883545 [details]
build.log
build log and emerge --info
Error(s) that match a know pattern:
E PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x719e22b718a0>
E PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x719e234fc4f0>
E pypdf.errors.PdfReadError: Broken xref table
E pypdf.errors.PdfReadError: Could not find object.
E pypdf.errors.PdfReadError: /Prev=0 in the trailer (try opening with strict=False)
E pypdf.errors.PdfReadError: Unknown Destination Type: '0'
:exception FileNotFoundError: If the file cannot be found.
:exception PIL.UnidentifiedImageError: If the image cannot be opened and
:exception TypeError: If ``formats`` is not ``None``, a list or a tuple.
:exception ValueError: If the ``mode`` is not "r", or if a ``StringIO``
FAILED tests/test_reader.py::test_get_images_raw[True-False-0-True-] - Failed: DID NOT WARN. No warnings of type (<class 'pypdf.errors.PdfReadWarn...
FAILED tests/test_reader.py::test_get_images_raw[True-True-0-True-] - Failed: DID NOT WARN. No warnings of type (<class 'pypdf.errors.PdfReadWarn...
FAILED tests/test_reader.py::test_get_images_raw[True-True--1-True-] - Failed: DID NOT WARN. No warnings of type (<class 'pypdf.errors.PdfReadWarn...
FAILED tests/test_reader.py::test_issue604[True] - Failed: DID NOT WARN. No warnings of type (<class 'pypdf.errors.PdfReadWarn...
FAILED tests/test_reader.py::test_read_prev_0_trailer - Failed: DID NOT WARN. No warnings of type (<class 'pypdf.errors.PdfReadWarn...
FAILED tests/test_reader.py::test_read_unknown_zero_pages - Failed: DID NOT WARN. No warnings of type (<class 'pypdf.errors.PdfReadWarn...
not import 'fpdf': No module named 'fpdf') [573/585]
> raise PdfReadError("Could not find object.")
SKIPPED [1] tests/test_page.py:1273: could not import 'fpdf': No module named 'fpdf'
SKIPPED [1] tests/test_writer.py:1954: could not import 'fpdf': No module named 'fpdf'
*** This bug has been marked as a duplicate of bug 923221 *** The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb8693a45074c0e4b72b9b3f9b697299e855f071 commit bb8693a45074c0e4b72b9b3f9b697299e855f071 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2024-01-30 15:07:24 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2024-01-30 16:35:57 +0000 dev-python/pypdf: Backport pytest-8 test fixes Closes: https://bugs.gentoo.org/923251 Signed-off-by: Michał Górny <mgorny@gentoo.org> dev-python/pypdf/files/pypdf-4.0.1-pytest-8.patch | 80 +++++++++++++++++++++++ dev-python/pypdf/pypdf-4.0.1.ebuild | 19 ++++-- 2 files changed, 92 insertions(+), 7 deletions(-) |