Skip to content

Commit

Permalink
Merge pull request #1270 from mara004/patch-1
Browse files Browse the repository at this point in the history
test_issue_1089: update wording regarding pypdfium2
  • Loading branch information
jsvine authored Feb 2, 2025
2 parents c562774 + 5d47d5a commit a77808a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,11 @@ def test_issue_982(self):

def test_issue_1089(self):
"""
Page.to_image() leaks file descriptors
Page.to_image() binds file descriptors.
This is because PyPdfium2 leaks file descriptors. Explicitly
close the `PdfDocument` to prevent this.
This is because pypdfium2 binds file descriptors, and garbage collection may
be too lazy. Explicitly close the `PdfDocument` to prevent running out of file
descriptors.
"""
# Skip test on platforms without getrlimit
if resource is None:
Expand Down

0 comments on commit a77808a

Please sign in to comment.