Skip to content

enable previously leftout test_usetex #6918

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 30, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Use checkdep_usetex to check for usetex
  • Loading branch information
jenshnielsen committed Aug 15, 2016
commit baab5d2b4ae13f6acb6dd8d57b013ce0f343aeea
8 changes: 3 additions & 5 deletions lib/matplotlib/tests/test_usetex.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@
extensions=['pdf', 'png'],
tol=0.3)
def test_usetex():
cmd = ['latex', '-version']
try:
check_output(cmd)
except:
canusetex = matplotlib.checkdep_usetex(True)
if not canusetex:
from nose import SkipTest
raise SkipTest('missing command: %s' % cmd[0])
raise SkipTest('Cannot run usetex_test')
matplotlib.rcParams['text.usetex'] = True
fig = plt.figure()
ax = fig.add_subplot(111)
Expand Down