mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-12 16:32:10 -05:00
Make generated texinfo files reproducible by sorting the anchors
This commit is contained in:
1 parent
2429cc5bbf
commit
561199e5e8
2 files changed
+5
-1
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user