Skip to content

MAINT: Use placeholder-based approach for logger_error#3673

Merged
stefan6419846 merged 9 commits intopy-pdf:mainfrom
alan-techdev:issue-3384-PR-1
Mar 16, 2026
Merged

MAINT: Use placeholder-based approach for logger_error#3673
stefan6419846 merged 9 commits intopy-pdf:mainfrom
alan-techdev:issue-3384-PR-1

Conversation

@alan-techdev
Copy link
Copy Markdown
Contributor

@alan-techdev alan-techdev commented Mar 8, 2026

This is the first PR out of two. This address partially the issue #3384 for logger_error only. The second PR will address the same issue but for logger_warning
This fixes #3384

@alan-techdev
Copy link
Copy Markdown
Contributor Author

The synch forked repo is always failing
see

Is there a special configuration ?

Copy link
Copy Markdown
Collaborator

@stefan6419846 stefan6419846 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. I have added some comments.

As for the tests: I propose to move the values to actual PdfObjects as this is what we pass in most of the cases.

Regarding the tests failing on forks: This is due to downloading large amounts of PDF files and rate limits from GitHub. There unfortunately is not much we can do about this.

Comment thread pypdf/_cmap.py Outdated
Comment thread pypdf/_cmap.py Outdated
Comment thread pypdf/_utils.py Outdated
Comment thread tests/test_utils.py Outdated
Comment thread tests/test_utils.py Outdated
Comment thread tests/test_utils.py Outdated
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.41%. Comparing base (8f1f4aa) to head (d6cacd1).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3673   +/-   ##
=======================================
  Coverage   97.41%   97.41%           
=======================================
  Files          55       55           
  Lines        9989     9989           
  Branches     1833     1833           
=======================================
  Hits         9731     9731           
  Misses        150      150           
  Partials      108      108           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@alan-techdev
Copy link
Copy Markdown
Contributor Author

@stefan6419846 any issue remaining ?

@stefan6419846 stefan6419846 changed the title MAINT: Use placeholder-based approach for logger_error (py-pdf#3384) MAINT: Use placeholder-based approach for logger_error Mar 16, 2026
Comment thread tests/test_utils.py Outdated
Comment thread tests/test_utils.py Outdated
Comment thread tests/test_utils.py Outdated
Co-authored-by: Stefan <96178532+stefan6419846@users.noreply.github.com>
@stefan6419846 stefan6419846 merged commit 84f5266 into py-pdf:main Mar 16, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use placeholder-based approach for logger_error and logger_warning

2 participants