diff --git a/tests/test_plotting.py b/tests/test_plotting.py index d53e3bc..e13fc98 100644 --- a/tests/test_plotting.py +++ b/tests/test_plotting.py @@ -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"))