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.
2 parents 236ee03 + 034b5d5 commit 9aab0beCopy full SHA for 9aab0be
1 file changed
lib/matplotlib/tests/test_backend_pgf.py
@@ -22,10 +22,13 @@ def check_for(texsystem):
22
\makeatletter
23
\@@end
24
"""
25
- latex = subprocess.Popen(["xelatex", "-halt-on-error"],
26
- stdin=subprocess.PIPE,
27
- stdout=subprocess.PIPE)
28
- stdout, stderr = latex.communicate(header.encode("utf8"))
+ try:
+ latex = subprocess.Popen(["xelatex", "-halt-on-error"],
+ stdin=subprocess.PIPE,
+ stdout=subprocess.PIPE)
29
+ stdout, stderr = latex.communicate(header.encode("utf8"))
30
+ except OSError:
31
+ return False
32
33
return latex.returncode == 0
34
0 commit comments