This repository was archived by the owner on Apr 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -139,13 +139,6 @@ def implements_convert():
139139 f"Unknown backend '{ backend } ' specified. Please use either 'poppler' or 'ghostscript'."
140140 )
141141
142- if backend == "ghostscript" :
143- warnings .warn (
144- "'ghostscript' will be replaced by 'poppler' as the default image conversion"
145- " backend in v0.12.0. You can try out 'poppler' with backend='poppler'." ,
146- DeprecationWarning ,
147- )
148-
149142 return BACKENDS [backend ]()
150143 else :
151144 if not implements_convert ():
Original file line number Diff line number Diff line change @@ -131,19 +131,6 @@ class ConversionBackend:
131131 camelot .read_pdf (foo_pdf , backend = ConversionBackend ())
132132
133133
134- def test_lattice_ghostscript_deprecation_warning (foo_pdf ):
135- ghostscript_deprecation_warning = (
136- "'ghostscript' will be replaced by 'poppler' as the default image conversion"
137- " backend in v0.12.0. You can try out 'poppler' with backend='poppler'."
138- )
139-
140- with warnings .catch_warnings ():
141- warnings .simplefilter ("error" )
142- with pytest .raises (DeprecationWarning ) as e :
143- camelot .read_pdf (foo_pdf )
144- assert str (e .value ) == ghostscript_deprecation_warning
145-
146-
147134def test_invalid_url ():
148135 url = "fttp://google.com/pdf"
149136 message = "File format not supported"
You can’t perform that action at this time.
0 commit comments