Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923251 - dev-python/pypdf-4.0.1 fails tests with >=dev-python/pytest-8.0.0
Summary: dev-python/pypdf-4.0.1 fails tests with >=dev-python/pytest-8.0.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: pytest8
  Show dependency tree
 
Reported: 2024-01-29 10:28 UTC by Agostino Sarubbo
Modified: 2024-01-30 16:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,188.56 KB, text/plain)
2024-01-29 10:28 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-01-29 10:28:14 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/pypdf-4.0.1 fails tests.
Discovered on: amd64 (internal ref: ci)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0015
Comment 1 Agostino Sarubbo gentoo-dev 2024-01-29 10:28:17 UTC
Created attachment 883545 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-01-29 10:28:17 UTC
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'
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-01-29 12:51:17 UTC

*** This bug has been marked as a duplicate of bug 923221 ***
Comment 4 Larry the Git Cow gentoo-dev 2024-01-30 16:36:02 UTC
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(-)