From a8387ac21bf6f9693cef24f9ef39482b9337f3af Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 30 Oct 2020 15:18:32 -0700 Subject: tests: fix conditional on poppler version check --- python/tests/test_pdfextract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/tests/test_pdfextract.py b/python/tests/test_pdfextract.py index 64e3137..255e3fb 100644 --- a/python/tests/test_pdfextract.py +++ b/python/tests/test_pdfextract.py @@ -21,7 +21,7 @@ def test_process_fake_pdf(): resp = process_pdf(pdf_bytes) assert resp.status == 'not-pdf' -@pytest.mark.skipif(poppler.__version__ == '0.2.1', reason="unsupported version of poppler") +@pytest.mark.skipif(poppler.version_string() == '0.71.0', reason="unsupported version of poppler") def test_process_dummy_pdf(): with open('tests/files/dummy.pdf', 'rb') as f: pdf_bytes = f.read() -- cgit v1.2.3