File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ def _info(self) -> Optional[DictionaryObject]:
257257 info = info .get_object ()
258258 if not isinstance (info , DictionaryObject ):
259259 raise PdfReadError (
260- "Trailer not found or does not point to document information directory "
260+ "Trailer not found or does not point to a document information dictionary "
261261 )
262262 return info
263263
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ def test_broken_meta_data(pdf_path):
155155 reader = PdfReader (BytesIO (b .replace (b"/Info 2 0 R" , b"/Info 2 " )))
156156 with pytest .raises (PdfReadError ) as exc :
157157 reader .metadata
158- assert "does not point to document information directory " in repr (exc )
158+ assert "does not point to a document information dictionary " in repr (exc )
159159
160160
161161@pytest .mark .parametrize (
You can’t perform that action at this time.
0 commit comments