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

Skip to content

Skip svg tex test if tex is not installed #5770

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 3 commits into from
Dec 31, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
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
8 changes: 7 additions & 1 deletion lib/matplotlib/tests/test_backend_svg.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@

import matplotlib.pyplot as plt
from matplotlib.testing.decorators import cleanup
from matplotlib.testing.decorators import image_comparison
from matplotlib.testing.decorators import image_comparison, knownfailureif
import matplotlib

needs_tex = knownfailureif(
not matplotlib.checkdep_tex(),
"This test needs a TeX installation")


@cleanup
Expand Down Expand Up @@ -173,6 +178,7 @@ def test_determinism_notex():


@cleanup
@needs_tex
def test_determinism_tex():
# unique filename to allow for parallel testing
_test_determinism('determinism_tex.svg', usetex=True)
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/textpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def get_glyphs_tex(self, prop, s, glyph_map=None,
1094995778)]:
try:
font.select_charmap(charmap_code)
except ValueError:
except (ValueError, RuntimeError):
pass
else:
break
Expand Down