mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Remove an unused function in a test (#12839)
This commit is contained in:
parent
b5617c0d15
commit
7b6f76b61c
@ -2184,10 +2184,6 @@ def test_duplicated_labels_before_module(app):
|
||||
app.build()
|
||||
content: str = (app.outdir / 'projectnamenotset.tex').read_text(encoding='utf8')
|
||||
|
||||
def count_label(name):
|
||||
text = r'\phantomsection\label{\detokenize{%s}}' % name
|
||||
return content.count(text)
|
||||
|
||||
pattern = (
|
||||
r'\\phantomsection\\label\{\\detokenize\{index:label-(?:auto-)?\d+[a-z]*}}'
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user