Fix syntax errors
This commit is contained in:
@@ -441,10 +441,10 @@ class Stream(BaseParser):
|
|||||||
if self.images:
|
if self.images:
|
||||||
warnings.warn(
|
warnings.warn(
|
||||||
f"{base_filename} is image-based, camelot only works on"
|
f"{base_filename} is image-based, camelot only works on"
|
||||||
" text-based pages.")
|
" text-based pages."
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
warnings.warn(f"No tables found on {base_filename}"))
|
warnings.warn(f"No tables found on {base_filename}")
|
||||||
return []
|
return []
|
||||||
|
|
||||||
self._generate_table_bbox()
|
self._generate_table_bbox()
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ def test_no_tables_found_warnings_suppressed():
|
|||||||
tables = camelot.read_pdf(filename, suppress_stdout=True)
|
tables = camelot.read_pdf(filename, suppress_stdout=True)
|
||||||
except Warning as e:
|
except Warning as e:
|
||||||
warning_text = str(e)
|
warning_text = str(e)
|
||||||
pytest.fail(f"Unexpected warning: {warning_text}"
|
pytest.fail(f"Unexpected warning: {warning_text}")
|
||||||
|
|
||||||
|
|
||||||
def test_no_password():
|
def test_no_password():
|
||||||
|
|||||||
Reference in New Issue
Block a user