diff --git a/tests/test_ext_autosectionlabel.py b/tests/test_ext_autosectionlabel.py index d2db4ae70..e26b3f3ed 100644 --- a/tests/test_ext_autosectionlabel.py +++ b/tests/test_ext_autosectionlabel.py @@ -35,12 +35,7 @@ def test_autosectionlabel_html(app, status, warning): 'For UNIX users') assert re.search(html, content, re.S) - -@pytest.mark.sphinx('html', testroot='ext-autosectionlabel') -def test_autosectionlabel_html_apostrophe(app, status, warning): - app.builder.build_all() - - content = (app.outdir / 'index.html').text() + # for smart_quotes (refs: #4027) html = (u'
  • ' u'This one’s got an apostrophe' @@ -52,9 +47,3 @@ def test_autosectionlabel_html_apostrophe(app, status, warning): @pytest.mark.sphinx('html', testroot='ext-autosectionlabel-prefix-document') def test_autosectionlabel_prefix_document_html(app, status, warning): return test_autosectionlabel_html(app, status, warning) - - -# Re-use test definition from above, just change the test root directory -@pytest.mark.sphinx('html', testroot='ext-autosectionlabel-prefix-document') -def test_autosectionlabel_prefix_document_html_apostrophe(app, status, warning): - return test_autosectionlabel_html_apostrophe(app, status, warning)