diff --git a/src/pypdfium2/_library_scope.py b/src/pypdfium2/_library_scope.py index d66daf21e..54c5cbb85 100644 --- a/src/pypdfium2/_library_scope.py +++ b/src/pypdfium2/_library_scope.py @@ -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 diff --git a/tests/test_misc.py b/tests/test_misc.py index 739fe9e98..33e72c173 100644 --- a/tests/test_misc.py +++ b/tests/test_misc.py @@ -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)