From c2ccc7f29d1aa0409ac8d924438df31d9bd2c57d Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Tue, 20 Sep 2022 23:48:05 -0700 Subject: [PATCH] Fix test failure due to new logging from pikepdf --- tests/test_validation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_validation.py b/tests/test_validation.py index 192925f8..6472ad1f 100644 --- a/tests/test_validation.py +++ b/tests/test_validation.py @@ -98,6 +98,8 @@ def test_output_tty(): def test_report_file_size(tmp_path, caplog): + logging.getLogger('pikepdf._qpdf').setLevel(logging.CRITICAL) # Suppress logging + in_ = tmp_path / 'a.pdf' out = tmp_path / 'b.pdf' pdf = pikepdf.new()