Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a950006

Browse files
committed
Skip svg tex test if tex is not installed
1 parent 4ca39f7 commit a950006

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/matplotlib/tests/test_backend_svg.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
import matplotlib.pyplot as plt
1111
from matplotlib.testing.decorators import cleanup
1212
from matplotlib.testing.decorators import image_comparison
13+
import matplotlib
14+
15+
needs_tex = knownfailureif(
16+
not matplotlib.checkdep_tex(),
17+
"This test needs a TeX installation")
1318

1419

1520
@cleanup
@@ -173,6 +178,7 @@ def test_determinism_notex():
173178

174179

175180
@cleanup
181+
@needs_tex
176182
def test_determinism_tex():
177183
# unique filename to allow for parallel testing
178184
_test_determinism('determinism_tex.svg', usetex=True)

0 commit comments

Comments
 (0)