pdfminer.six/tests
htInEdin dc530f3a6f
Use logger.warn instead of warnings.warn if warning cannot be prevented by user (#673)
* Use logging.Logger.warning instead of warning.warn in most cases, following
 the Python official guidance that warning.warn is directed at _developers_,
 not users

 * (pdfdocument.py) remove declarations of PDFTextExtractionNotAllowedWarning,
			PDFNoValidXRefWarning

 * (pdfpage.py) Don't import warning, don't use PDFTextExtractionNotAllowedWarning

 * (tools/dumppdf.py) Don't import warning, don't use PDFNoValidXRefWarning

 * (tests/test_tools_dumppdf.py) Don't import warning, check for logging.WARN rather
				  than PDFNoValidXRefWarning

* get name right

* make flake8 happy

* Keep warning classes such that this does not crash code when these warnings are explictly ignored

* Update changelog to include pr ref

* Small textual change

* Remove patch

* No need for testing if the warning is actually raised. The test_tootls_dumppdf.py are just test cases if these pdfs are supported.

* Use logger as name for logger

* Add docs to legacy warnings

* Use logger.Logger.warn for failed decompression

* Add reference to docs describing when to use logger and warnings

Co-authored-by: Henry S. Thompson <ht@home.hst.name>
Co-authored-by: Pieter Marsman <pietermarsman@gmail.com>
2022-01-26 20:41:12 +01:00
..
helpers.py Enforce pep8 coding-style (#345) 2019-12-29 21:20:20 +01:00
tempfilepath.py Issue #469 is fixed (When run on Windows a lot of tests fail with the error: [Errno 13] Permission denied) (#484) 2020-10-26 10:10:11 +01:00
test_converter.py Fix bug: _is_binary_stream should recognize TextIOWrapper as non-binary, escaped \r\n should be removed (#616) 2021-09-27 20:30:40 +02:00
test_encodingdb.py Catch ValueError when converting font encoding differences to characters (#389) 2020-03-16 20:12:45 +01:00
test_font_size.py Fixes jbig2 writer to write valid jb2 files 2022-01-23 21:41:08 +01:00
test_highlevel_extracttext.py Fix regression in page layout that sometimes returned text lines out of order (#659) 2022-01-26 19:55:08 +01:00
test_layout.py Also group center-aligned text lines in addition to left-aligned and right-aligned text lines (#382) (#384) 2020-03-23 22:38:39 +01:00
test_pdfdocument.py Fix 594 use null id when encrypted but no id given (#595) 2021-08-29 21:32:14 +02:00
test_pdfencoding.py add shebang line to script in tools (#408) 2020-04-28 10:58:42 +02:00
test_pdffont.py Always try to get CMap, even if name is not recognized (#438) 2020-07-23 20:27:38 +02:00
test_pdfminer_ccitt.py Added test case for CCITTFaxDecoder (#700) 2022-01-23 21:00:13 +01:00
test_pdfminer_crypto.py Remove unused rijndael encryption implementation (#465) 2020-09-10 19:28:00 +02:00
test_pdfminer_psparser.py Enforce pep8 coding-style (#345) 2019-12-29 21:20:20 +01:00
test_tools_dumppdf.py Use logger.warn instead of warnings.warn if warning cannot be prevented by user (#673) 2022-01-26 20:41:12 +01:00
test_tools_pdf2txt.py Fixes jbig2 writer to write valid jb2 files 2022-01-23 21:41:08 +01:00
test_utils.py Allow a pathlib.PurePath object as a input to open_filename (#492) 2020-09-17 21:29:00 +02:00