diff options
author | James R. Barlow <james@purplerock.ca> | 2022-04-05 16:02:50 -0700 |
---|---|---|
committer | James R. Barlow <james@purplerock.ca> | 2022-04-05 16:02:50 -0700 |
commit | 43302d7e1242263479768c17c5d00b9112654dc3 (patch) | |
tree | df6f1049ee693410aee8f014dc606b6e22efb291 | |
parent | 79382a6039a9c04a30497cc0e263e1b96b4955c4 (diff) | |
download | ocrmypdf-43302d7e1242263479768c17c5d00b9112654dc3.tar.gz |
Fix pytest.warns() on older pytest
Thanks @QuLogic
-rw-r--r-- | tests/test_pdfinfo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_pdfinfo.py b/tests/test_pdfinfo.py index 1aa75a86..56052d1e 100644 --- a/tests/test_pdfinfo.py +++ b/tests/test_pdfinfo.py @@ -181,7 +181,7 @@ def test_stack_abuse(): pdfinfo.info._interpret_contents(stream) stream = pikepdf.Stream(p, b'q ' * 135) - with pytest.warns(): + with pytest.warns(UserWarning): with pytest.raises(RuntimeError): pdfinfo.info._interpret_contents(stream) |