Skip ghostscript tests on windows

This commit is contained in:
Vinayak Mehta
2021-07-04 19:51:01 +05:30
parent 4c78dadd55
commit 4628be9251
+4 -4
View File
@@ -37,7 +37,7 @@ def test_lattice_contour_plot_poppler():
@pytest.mark.mpl_image_compare(baseline_dir="files/baseline_plots", remove_text=True)
def test_lattice_contour_plot_ghostscript():
if sys.platform not in ["linux", "darwin"]:
return True
pytest.skip("Skipping ghostscript test on Windows")
filename = os.path.join(testdir, "foo.pdf")
tables = camelot.read_pdf(filename, backend=ImageConversionBackend("ghostscript"))
@@ -61,7 +61,7 @@ def test_line_plot_poppler():
@pytest.mark.mpl_image_compare(baseline_dir="files/baseline_plots", remove_text=True)
def test_line_plot_ghostscript():
if sys.platform not in ["linux", "darwin"]:
return True
pytest.skip("Skipping ghostscript test on Windows")
filename = os.path.join(testdir, "foo.pdf")
tables = camelot.read_pdf(filename, backend=ImageConversionBackend("ghostscript"))
@@ -78,7 +78,7 @@ def test_joint_plot_poppler():
@pytest.mark.mpl_image_compare(baseline_dir="files/baseline_plots", remove_text=True)
def test_joint_plot_ghostscript():
if sys.platform not in ["linux", "darwin"]:
return True
pytest.skip("Skipping ghostscript test on Windows")
filename = os.path.join(testdir, "foo.pdf")
tables = camelot.read_pdf(filename, backend=ImageConversionBackend("ghostscript"))
@@ -95,7 +95,7 @@ def test_grid_plot_poppler():
@pytest.mark.mpl_image_compare(baseline_dir="files/baseline_plots", remove_text=True)
def test_grid_plot_ghostscript():
if sys.platform not in ["linux", "darwin"]:
return True
pytest.skip("Skipping ghostscript test on Windows")
filename = os.path.join(testdir, "foo.pdf")
tables = camelot.read_pdf(filename, backend=ImageConversionBackend("ghostscript"))