mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Let's see now
This commit is contained in:
parent
fbc8802dc3
commit
f105b737ed
@ -1156,13 +1156,9 @@ def test_alternate_stylesheets(app, status, warning):
|
|||||||
}
|
}
|
||||||
|
|
||||||
for fname, paths in iteritems(expects):
|
for fname, paths in iteritems(expects):
|
||||||
parser = NslessParser()
|
with (app.outdir / fname).open('rb') as fp:
|
||||||
parser.entity.update(html_entities.entitydefs)
|
etree = HTML_PARSER.parse(fp)
|
||||||
fp = open(os.path.join(app.outdir, fname), 'rb')
|
|
||||||
try:
|
|
||||||
etree = ET.parse(fp, parser)
|
|
||||||
finally:
|
|
||||||
fp.close()
|
|
||||||
|
|
||||||
for xpath, check, be_found in paths:
|
for xpath, check, be_found in paths:
|
||||||
yield check_xpath, etree, fname, xpath, check, be_found
|
yield check_xpath, etree, fname, xpath, check, be_found
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user