Thanks to visit codestin.com Credit goes to github.com
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.
1 parent d38ec34 commit baab5d2Copy full SHA for baab5d2
1 file changed
lib/matplotlib/tests/test_usetex.py
@@ -11,12 +11,10 @@
11
extensions=['pdf', 'png'],
12
tol=0.3)
13
def test_usetex():
14
- cmd = ['latex', '-version']
15
- try:
16
- check_output(cmd)
17
- except:
+ canusetex = matplotlib.checkdep_usetex(True)
+ if not canusetex:
18
from nose import SkipTest
19
- raise SkipTest('missing command: %s' % cmd[0])
+ raise SkipTest('Cannot run usetex_test')
20
matplotlib.rcParams['text.usetex'] = True
21
fig = plt.figure()
22
ax = fig.add_subplot(111)
0 commit comments