Skip to content

Commit

Permalink
add two FIXMEs
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 committed Dec 18, 2024
1 parent 58f508a commit 11469fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/pypdfium2/_library_scope.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
def init_lib():
assert not pdfium_i.LIBRARY_AVAILABLE
if pdfium_i.DEBUG_AUTOCLOSE:
# FIXME never shown, because DEBUG_AUTOCLOSE can only be set on the caller side after pypdfium2 has been imported...
print("Initialize PDFium (auto)", file=sys.stderr)

# PDFium init API may change in the future: https://crbug.com/pdfium/1446
Expand Down
1 change: 1 addition & 0 deletions tests/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def _filter(prefix, skips=[], type=int):
BitmapNsp = _filter("FPDFBitmap_", [pdfium_c.FPDFBitmap_Unknown])
PageObjNsp = _filter("FPDF_PAGEOBJ_")
ErrorMapping = pdfium_i.ErrorToStr
# FIXME this will cause an erroneous test failure when using the reference bindings with a non-XFA build
if "XFA" in PDFIUM_INFO.flags:
ErrorMapping.update(pdfium_i.XFAErrorToStr)

Expand Down

0 comments on commit 11469fe

Please sign in to comment.