From 4628be925108631dc03eb9d4a0f8923cf1a501cf Mon Sep 17 00:00:00 2001 From: Vinayak Mehta Date: Sun, 4 Jul 2021 19:51:01 +0530 Subject: [PATCH] Skip ghostscript tests on windows --- tests/test_plotting.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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"))