summaryrefslogtreecommitdiffhomepage
path: root/tests/test_pdfinfo.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_pdfinfo.py')
-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)