mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix test_latex failed if stylefiles not found (refs: #3264)
This commit is contained in:
parent
5b41df13bc
commit
01736bb397
@ -50,7 +50,7 @@ def kpsetest(*filenames):
|
|||||||
except OSError:
|
except OSError:
|
||||||
# no kpsewhich... either no tex distribution is installed or it is
|
# no kpsewhich... either no tex distribution is installed or it is
|
||||||
# a "strange" one -- don't bother running latex
|
# a "strange" one -- don't bother running latex
|
||||||
return None
|
return False
|
||||||
else:
|
else:
|
||||||
p.communicate()
|
p.communicate()
|
||||||
if p.returncode != 0:
|
if p.returncode != 0:
|
||||||
@ -84,8 +84,8 @@ def compile_latex_document(app):
|
|||||||
|
|
||||||
def skip_if_stylefiles_notfound(testfunc):
|
def skip_if_stylefiles_notfound(testfunc):
|
||||||
if kpsetest(*STYLEFILES) is False:
|
if kpsetest(*STYLEFILES) is False:
|
||||||
return skip_if(testfunc,
|
msg = 'not running latex, the required styles do not seem to be installed'
|
||||||
'not running latex, the required styles do not seem to be installed')
|
return skip_if(True, msg)(testfunc)
|
||||||
else:
|
else:
|
||||||
return testfunc
|
return testfunc
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user