-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
Description
Describe the bug
Hi, thank you for maintaining this wonderful ecosystem! Sadly, I encountered a test failure in sphinxcontrib-jsmath. I guess this could be a regression introduced by #13044.
Log:
[ 14s] =================================== FAILURES ===================================
[ 14s] ____________________ test_disabled_when_equations_not_found ____________________
[ 14s]
[ 14s] app = <SphinxTestApp buildername='html'>
[ 14s] status = <_io.StringIO object at 0xf57b1220>
[ 14s] warning = <_io.StringIO object at 0xf57b12f8>
[ 14s]
[ 14s] @pytest.mark.sphinx('html', testroot='nomath')
[ 14s] def test_disabled_when_equations_not_found(app, status, warning):
[ 14s] app.builder.build_all()
[ 14s]
[ 14s] content = (app.outdir / 'index.html').read_text()
[ 14s] > assert 'jsmath.js' not in content
[ 14s] E assert 'jsmath.js' not in '<!DOCTYPE html>\n\n<html lang="en" data-content_root="./">\n <head>\n <meta charset="utf-8" />\n <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />\n\n <title>test-nomath — Project name not set documentation</title>\n <link rel="stylesheet" type="text/css" href="_static/pygments.css?v=8e8a900e" />\n <link rel="stylesheet" type="text/css" href="_static/basic.css?v=29da98fa" />\n <script src="_static/documentation_options.js?v=5929fcd5"></script>\n <script src="_static/doctools.js?v=9bcbadda"></script>\n <script src="_static/sphinx_highlight.js?v=dc90522c"></script>\n <script src="/path/to/jsmath.js"></script>\n <link rel="index" title="Index" href="genindex.html" />\n <link rel="search" title="Search" href="search.html" /> \n </head><body>\n <div class="related" role="navigation" aria-label="Related">\n <h3>Navigation</h3>\n <ul>\n <li class="right" style="margin-right: 10px">\n <a href="genindex.html" title="General Index"\n accesskey="I">index</a></li>\n <li class="nav-item nav-item-0"><a href="#">Project name not set documentation</a> »</li>\n <li class="nav-item nav-item-this"><a href="">test-nomath</a></li> \n </ul>\n </div> \n\n <div class="document">\n <div class="documentwrapper">\n <div class="bodywrapper">\n <div class="body" role="main">\n \n <section id="test-nomath">\n<h1>test-nomath<a class="headerlink" href="#test-nomath" title="Link to this heading">¶</a></h1>\n</section>\n\n\n <div class="clearer"></div>\n </div>\n </div>\n </div>\n <div class="sphinxsidebar" role="navigation" aria-label="Main">\n <div class="sphinxsidebarwrapper">\n <div role="note" aria-label="source link">\n <h3>This Page</h3>\n <ul class="this-page-menu">\n <li><a href="_sources/index.rst.txt"\n rel="nofollow">Show Source</a></li>\n </ul>\n </div>\n<search id="searchbox" style="display: none" role="search">\n <h3 id="searchlabel">Quick search</h3>\n <div class="searchformwrapper">\n <form class="search" action="search.html" method="get">\n <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>\n <input type="submit" value="Go" />\n </form>\n </div>\n</search>\n<script>document.getElementById(\'searchbox\').style.display = "block"</script>\n </div>\n </div>\n <div class="clearer"></div>\n </div>\n <div class="related" role="navigation" aria-label="Related">\n <h3>Navigation</h3>\n <ul>\n <li class="right" style="margin-right: 10px">\n <a href="genindex.html" title="General Index"\n >index</a></li>\n <li class="nav-item nav-item-0"><a href="#">Project name not set documentation</a> »</li>\n <li class="nav-item nav-item-this"><a href="">test-nomath</a></li> \n </ul>\n </div>\n <div class="footer" role="contentinfo">\n © Copyright .\n Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 8.2.3.\n </div>\n </body>\n</html>'
[ 14s] E
[ 14s] E 'jsmath.js' is contained here:
[ 14s] E <!DOCTYPE html>
[ 14s] E
[ 14s] E <html lang="en" data-content_root="./">
[ 14s] E <head>
[ 14s] E <meta charset="utf-8" />
[ 14s] E <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
[ 14s] E
[ 14s] E <title>test-nomath — Project name not set documentation</title>
[ 14s] E <link rel="stylesheet" type="text/css" href="_static/pygments.css?v=8e8a900e" />
[ 14s] E <link rel="stylesheet" type="text/css" href="_static/basic.css?v=29da98fa" />
[ 14s] E <script src="_static/documentation_options.js?v=5929fcd5"></script>
[ 14s] E <script src="_static/doctools.js?v=9bcbadda"></script>
[ 14s] E <script src="_static/sphinx_highlight.js?v=dc90522c"></script>
[ 14s] E <script src="/path/to/jsmath.js"></script>
[ 14s] E ? +++++++++
[ 14s] E <link rel="index" title="Index" href="genindex.html" />
[ 14s] E <link rel="search" title="Search" href="search.html" />
[ 14s] E </head><body>
[ 14s] E <div class="related" role="navigation" aria-label="Related">
[ 14s] E <h3>Navigation</h3>
[ 14s] E <ul>
[ 14s] E <li class="right" style="margin-right: 10px">
[ 14s] E <a href="genindex.html" title="General Index"
[ 14s] E accesskey="I">index</a></li>
[ 14s] E <li class="nav-item nav-item-0"><a href="#">Project name not set documentation</a> »</li>
[ 14s] E <li class="nav-item nav-item-this"><a href="">test-nomath</a></li>
[ 14s] E </ul>
[ 14s] E </div>
[ 14s] E
[ 14s] E <div class="document">
[ 14s] E <div class="documentwrapper">
[ 14s] E <div class="bodywrapper">
[ 14s] E <div class="body" role="main">
[ 14s] E
[ 14s] E <section id="test-nomath">
[ 14s] E <h1>test-nomath<a class="headerlink" href="#test-nomath" title="Link to this heading">¶</a></h1>
[ 14s] E </section>
[ 14s] E
[ 14s] E
[ 14s] E <div class="clearer"></div>
[ 14s] E </div>
[ 14s] E </div>
[ 14s] E </div>
[ 14s] E <div class="sphinxsidebar" role="navigation" aria-label="Main">
[ 14s] E <div class="sphinxsidebarwrapper">
[ 14s] E <div role="note" aria-label="source link">
[ 14s] E <h3>This Page</h3>
[ 14s] E <ul class="this-page-menu">
[ 14s] E <li><a href="_sources/index.rst.txt"
[ 14s] E rel="nofollow">Show Source</a></li>
[ 14s] E </ul>
[ 14s] E </div>
[ 14s] E <search id="searchbox" style="display: none" role="search">
[ 14s] E <h3 id="searchlabel">Quick search</h3>
[ 14s] E <div class="searchformwrapper">
[ 14s] E <form class="search" action="search.html" method="get">
[ 14s] E <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
[ 14s] E <input type="submit" value="Go" />
[ 14s] E </form>
[ 14s] E </div>
[ 14s] E </search>
[ 14s] E <script>document.getElementById('searchbox').style.display = "block"</script>
[ 14s] E </div>
[ 14s] E </div>
[ 14s] E <div class="clearer"></div>
[ 14s] E </div>
[ 14s] E <div class="related" role="navigation" aria-label="Related">
[ 14s] E <h3>Navigation</h3>
[ 14s] E <ul>
[ 14s] E <li class="right" style="margin-right: 10px">
[ 14s] E <a href="genindex.html" title="General Index"
[ 14s] E >index</a></li>
[ 14s] E <li class="nav-item nav-item-0"><a href="#">Project name not set documentation</a> »</li>
[ 14s] E <li class="nav-item nav-item-this"><a href="">test-nomath</a></li>
[ 14s] E </ul>
[ 14s] E </div>
[ 14s] E <div class="footer" role="contentinfo">
[ 14s] E © Copyright .
[ 14s] E Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 8.2.3.
[ 14s] E </div>
[ 14s] E </body>
[ 14s] E </html>
[ 14s]
[ 14s] tests/test_jsmath.py:56: AssertionError
How to Reproduce
run https://github.com/sphinx-doc/sphinxcontrib-jsmath testsuite
Environment Information
[ 14s] + sphinx-build --bug-report
[ 14s] Please paste all output below into the bug report template
[ 14s]
[ 14s]
[ 14s]
[ 14s] Platform: linux; (Linux-6.13.6-1-default-i686-athlon-with-glibc2.41)
[ 14s] Python version: 3.13.2 (main, Feb 05 2025, 09:57:44) [GCC])
[ 14s] Python implementation: CPython
[ 14s] Sphinx version: 8.2.3
[ 14s] Docutils version: 0.21.2
[ 14s] Jinja2 version: 3.1.6
[ 14s] Pygments version: 2.19.1
Sphinx extensions
Additional context
No response