Make generated texinfo files reproducible by sorting the anchors

This commit is contained in:
Dmitry Shachnev committed 2018-08-30 13:03:49 +03:00
1 parent 2429cc5bbf
commit 561199e5e8
2 files changed
+5 -1

No files matched your search

+4
View File
@@ -50,6 +50,10 @@ def test_texinfo_warnings(app, status, warning):
def test_texinfo(app, status, warning):
TexinfoTranslator.ignore_missing_images = True
app.builder.build_all()
result = (app.outdir / 'SphinxTests.texi').text(encoding='utf8')
assert ('@anchor{markup doc}@anchor{12}'
'@anchor{markup id1}@anchor{13}'
'@anchor{markup testing-various-markup}@anchor{14}' in result)
# now, try to run makeinfo over it
cwd = os.getcwd()
os.chdir(app.outdir)