python-poppler icon indicating copy to clipboard operation
python-poppler copied to clipboard

Implement a test for poppler.enable_logging().

Open bzamecnik opened this issue 3 years ago • 0 comments

Follow up for https://github.com/cbrunet/python-poppler/pull/61, issue https://github.com/cbrunet/python-poppler/issues/49.

  • add a file error_log.pdf which produces an error when text is read or an image is rendered
  • add a fixture document_with_error() opening that file
  • add a test test_document_with_error() which captures the stderr on the file descriptor and tests that the error message is produced only if the last invocation was not False

bzamecnik avatar Jul 15 '22 07:07 bzamecnik