summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJames R. Barlow <james@purplerock.ca>2022-04-05 16:02:50 -0700
committerJames R. Barlow <james@purplerock.ca>2022-04-05 16:02:50 -0700
commit43302d7e1242263479768c17c5d00b9112654dc3 (patch)
treedf6f1049ee693410aee8f014dc606b6e22efb291
parent79382a6039a9c04a30497cc0e263e1b96b4955c4 (diff)
downloadocrmypdf-43302d7e1242263479768c17c5d00b9112654dc3.tar.gz
Fix pytest.warns() on older pytest
Thanks @QuLogic
-rw-r--r--tests/test_pdfinfo.py2
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)