We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 062c517 + 9b45f55 commit 4f7f2e9Copy full SHA for 4f7f2e9
lib/matplotlib/tests/test_backend_pgf.py
@@ -44,6 +44,12 @@ def check_for(texsystem):
44
reason='lualatex + pgf is required')
45
46
47
+def _has_sfmath():
48
+ return (shutil.which("kpsewhich")
49
+ and subprocess.run(["kpsewhich", "sfmath.sty"],
50
+ stdout=subprocess.PIPE).returncode == 0)
51
+
52
53
def compare_figure(fname, savefig_kwargs={}, tol=0):
54
actual = os.path.join(result_dir, fname)
55
plt.savefig(actual, **savefig_kwargs)
@@ -113,6 +119,7 @@ def test_pdflatex():
113
119
# test updating the rc parameters for each figure
114
120
@needs_xelatex
115
121
@needs_pdflatex
122
+@pytest.mark.skipif(not _has_sfmath(), reason='needs sfmath.sty')
116
123
@pytest.mark.style('default')
117
124
@pytest.mark.backend('pgf')
118
125
def test_rcupdate():
0 commit comments