Source: sphinx-notfound-page
Version: 0.8.3-2
Severity: important
Tags: ftbfs
User: [email protected]
Usertags: sphinx7.1
Hi,
sphinx-notfound-page fails to build with Sphinx 7.1 and docutils 0.20, both of
which
are currently available in experimental.
Relevant part (hopefully):
> debian/rules build
> dh build --buildsystem=pybuild
> dh_update_autotools_config -O--buildsystem=pybuild
> dh_autoreconf -O--buildsystem=pybuild
> dh_auto_configure -O--buildsystem=pybuild
> dh_auto_build -O--buildsystem=pybuild
> I: pybuild plugin_pyproject:107: Building wheel for python3.11 with "build"
> module
> I: pybuild base:240: python3.11 -m build --skip-dependency-check
> --no-isolation --wheel --outdir
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-notfound-page
> * Building wheel...
> Successfully built sphinx_notfound_page-0.8.3-py2.py3-none-any.whl
> I: pybuild plugin_pyproject:119: Unpacking wheel built for python3.11 with
> "installer" module
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:240: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-notfound-page/build;
> python3.11 -m pytest tests
> ============================= test session starts
> ==============================
> platform linux -- Python 3.11.4, pytest-7.4.0, pluggy-1.2.0
> rootdir: /<<PKGBUILDDIR>>
> configfile: pytest.ini
> collected 30 items
>
> tests/test_urls.py ..F..FFFFFFF.F...FFFF......x..
> [100%]
>
> =================================== FAILURES
> ===================================
> ____________________________ test_default_settings
> _____________________________
>
> app = <SphinxTestApp buildername='html'>
> status = <_io.StringIO object at 0x7f28e6631bd0>
> warning = <_io.StringIO object at 0x7f28e66320e0>
>
> @pytest.mark.sphinx(srcdir=srcdir)
> def test_default_settings(app, status, warning):
> app.build()
> path = app.outdir / '404.html'
> assert path.exists()
> content = open(path).read()
>
> chunks = [
> '<h1>Page not found</h1>',
> "Unfortunately we couldn't find the content you were looking
> for.",
> '<title>Page not found — Python documentation</title>',
>
> # favicon and logo
> '<link rel="shortcut icon"
> href="/en/latest/_static/favicon.png"/>',
> '<img class="logo" src="/en/latest/_static/logo.svg"
> alt="Logo"/>',
>
> # sidebar URLs
> '<h1 class="logo"><a
> href="/en/latest/index.html">Python</a></h1>',
> '<form class="search" action="/en/latest/search.html"
> method="get">',
> '<li><a href="/en/latest/index.html">Documentation
> overview</a><ul>',
>
> # resources
> _get_css_html_link_tag('en', 'latest', 'alabaster.css'),
> _get_css_html_link_tag('en', 'latest', 'pygments.css'),
> '<link rel="stylesheet" href="/en/latest/_static/custom.css"
> type="text/css" />',
> ]
>
> for chunk in chunks:
> > assert chunk in content
> E assert '<link rel="shortcut icon"
> href="/en/latest/_static/favicon.png"/>' in '<!DOCTYPE html>\n\n<html
> lang="en">\n <head>\n <meta charset="utf-8" />\n <meta name="viewport"
> content="width..."https://github.com/bitprophet/alabaster">Alabaster
> 0.7.12</a>\n \n </div>\n\n \n\n \n </body>\n</html>'
>
> tests/test_urls.py:81: AssertionError
> --------------------------- Captured stdout teardown
> ---------------------------
> # testroot: root
> # builder: html
> # srcdir:
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-notfound-page/build/tests/examples/default
> # outdir:
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-notfound-page/build/tests/examples/default/_build/html
> # status:
> [01mRunning Sphinx v7.1.1[39;49;00m
> [01mbuilding [mo]: [39;49;00mtargets for 0 po files that are out of date
> [01mwriting output... [39;49;00m
> [01mbuilding [html]: [39;49;00mtargets for 3 source files that are out of
> date
> [01mupdating environment: [39;49;00m[new config] 3 added, 0 changed, 0
> removed
> [2K[01mreading sources... [39;49;00m[ 33%] [35mchapter[39;49;00m
> [2K[01mreading sources... [39;49;00m[ 67%] [35mchapter-i[39;49;00m
> [2K[01mreading sources... [39;49;00m[100%] [35mindex[39;49;00m
>
> [01mlooking for now-outdated files... [39;49;00mnone found
> [01mpickling environment... [39;49;00mdone
> [01mchecking consistency... [39;49;00mdone
> [01mpreparing documents... [39;49;00mdone
> [01mcopying assets... [39;49;00m[01mcopying static files... [39;49;00mdone
> [01mcopying extra files... [39;49;00mdone
> done
> [2K[01mwriting output... [39;49;00m[ 33%] [32mchapter[39;49;00m
> [2K[01mwriting output... [39;49;00m[ 67%] [32mchapter-i[39;49;00m
> [2K[01mwriting output... [39;49;00m[100%] [32mindex[39;49;00m
>
> [01mgenerating indices... [39;49;00mgenindex done
> [01mwriting additional pages... [39;49;00msearch done
> [01mdumping search index in English (code: en)... [39;49;00mdone
> [01mdumping object inventory... [39;49;00mdone
> [01mbuild succeeded.[39;49;00m
>
> The HTML pages are in tests/examples/default/_build/html.
>
> # warning:
>
> ________________________ test_default_language_setting
> _________________________
>
> app = <SphinxTestApp buildername='html'>
> status = <_io.StringIO object at 0x7f28e6631ab0>
> warning = <_io.StringIO object at 0x7f28e6632560>
>
> @pytest.mark.sphinx(
> srcdir=srcdir,
> confoverrides={
> 'notfound_default_language': 'ja',
> },
> )
> def test_default_language_setting(app, status, warning):
> app.build()
> path = app.outdir / '404.html'
> assert path.exists()
>
> content = open(path).read()
>
> chunks = [
> # sidebar URLs
> '<h1 class="logo"><a
> href="/ja/latest/index.html">Python</a></h1>',
> '<form class="search" action="/ja/latest/search.html"
> method="get">',
> '<li><a href="/ja/latest/index.html">Documentation
> overview</a><ul>',
>
> # favicon and logo
> '<link rel="shortcut icon"
> href="/ja/latest/_static/favicon.png"/>',
> '<img class="logo" src="/ja/latest/_static/logo.svg"
> alt="Logo"/>',
>
> # resources
> _get_css_html_link_tag('ja', 'latest', 'alabaster.css'),
> _get_css_html_link_tag('ja', 'latest', 'pygments.css'),
> '<link rel="stylesheet" href="/ja/latest/_static/custom.css"
> type="text/css" />',
> ]
>
> for chunk in chunks:
> > assert chunk in content
> E assert '<link rel="shortcut icon"
> href="/ja/latest/_static/favicon.png"/>' in '<!DOCTYPE html>\n\n<html
> lang="en">\n <head>\n <meta charset="utf-8" />\n <meta name="viewport"
> content="width..."https://github.com/bitprophet/alabaster">Alabaster
> 0.7.12</a>\n \n </div>\n\n \n\n \n </body>\n</html>'
>
> tests/test_urls.py:148: AssertionError
> --------------------------- Captured stdout teardown
> ---------------------------
> # testroot: root
> # builder: html
> # srcdir:
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-notfound-page/build/tests/examples/default
> # outdir:
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-notfound-page/build/tests/examples/default/_build/html
> # status:
> [01mRunning Sphinx v7.1.1[39;49;00m
> [01mbuilding [mo]: [39;49;00mtargets for 0 po files that are out of date
> [01mwriting output... [39;49;00m
> [01mbuilding [html]: [39;49;00mtargets for 3 source files that are out of
> date
> [01mupdating environment: [39;49;00m[new config] 3 added, 0 changed, 0
> removed
> [2K[01mreading sources... [39;49;00m[ 33%] [35mchapter[39;49;00m
> [2K[01mreading sources... [39;49;00m[ 67%] [35mchapter-i[39;49;00m
> [2K[01mreading sources... [39;49;00m[100%] [35mindex[39;49;00m
>
> [01mlooking for now-outdated files... [39;49;00mnone found
> [01mpickling environment... [39;49;00mdone
> [01mchecking consistency... [39;49;00mdone
> [01mpreparing documents... [39;49;00mdone
> [01mcopying assets... [39;49;00m[01mcopying static files... [39;49;00mdone
> [01mcopying extra files... [39;49;00mdone
> done
> [2K[01mwriting output... [39;49;00m[ 33%] [32mchapter[39;49;00m
> [2K[01mwriting output... [39;49;00m[ 67%] [32mchapter-i[39;49;00m
> [2K[01mwriting output... [39;49;00m[100%] [32mindex[39;49;00m
>
> [01mgenerating indices... [39;49;00mgenindex done
> [01mwriting additional pages... [39;49;00msearch done
> [01mdumping search index in English (code: en)... [39;49;00mdone
> [01mdumping object inventory... [39;49;00mdone
> [01mbuild succeeded.[39;49;00m
>
> The HTML pages are in tests/examples/default/_build/html.
>
> # warning:
>
> _________________________ test_default_version_setting
> _________________________
>
> app = <SphinxTestApp buildername='html'>
> status = <_io.StringIO object at 0x7f28e6633400>
> warning = <_io.StringIO object at 0x7f28e6422290>
>
> @pytest.mark.sphinx(
> srcdir=srcdir,
> confoverrides={
> 'notfound_default_version': 'customversion',
> },
> )
> def test_default_version_setting(app, status, warning):
> app.build()
> path = app.outdir / '404.html'
> assert path.exists()
>
> content = open(path).read()
>
> chunks = [
> # sidebar URLs
> '<h1 class="logo"><a
> href="/en/customversion/index.html">Python</a></h1>',
> '<form class="search" action="/en/customversion/search.html"
> method="get">',
> '<li><a href="/en/customversion/index.html">Documentation
> overview</a><ul>',
>
> # favicon and logo
> '<link rel="shortcut icon"
> href="/en/customversion/_static/favicon.png"/>',
> '<img class="logo" src="/en/customversion/_static/logo.svg"
> alt="Logo"/>',
>
> # resources
> _get_css_html_link_tag('en', 'customversion', 'alabaster.css'),
> _get_css_html_link_tag('en', 'customversion', 'pygments.css'),
> '<link rel="stylesheet"
> href="/en/customversion/_static/custom.css" type="text/css" />',
> ]
>
> for chunk in chunks:
> > assert chunk in content
> E assert '<link rel="shortcut icon"
> href="/en/customversion/_static/favicon.png"/>' in '<!DOCTYPE html>\n\n<html
> lang="en">\n <head>\n <meta charset="utf-8" />\n <meta name="viewport"
> content="width..."https://github.com/bitprophet/alabaster">Alabaster
> 0.7.12</a>\n \n </div>\n\n \n\n \n </body>\n</html>'
>
> tests/test_urls.py:181: AssertionError
> --------------------------- Captured stdout teardown
> ---------------------------
> # testroot: root
> # builder: html
> # srcdir:
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-notfound-page/build/tests/examples/default
> # outdir:
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-notfound-page/build/tests/examples/default/_build/html
> # status:
> [01mRunning Sphinx v7.1.1[39;49;00m
> [01mbuilding [mo]: [39;49;00mtargets for 0 po files that are out of date
> [01mwriting output... [39;49;00m
> [01mbuilding [html]: [39;49;00mtargets for 3 source files that are out of
> date
> [01mupdating environment: [39;49;00m[new config] 3 added, 0 changed, 0
> removed
> [2K[01mreading sources... [39;49;00m[ 33%] [35mchapter[39;49;00m
> [2K[01mreading sources... [39;49;00m[ 67%] [35mchapter-i[39;49;00m
> [2K[01mreading sources... [39;49;00m[100%] [35mindex[39;49;00m
>
> [01mlooking for now-outdated files... [39;49;00mnone found
> [01mpickling environment... [39;49;00mdone
> [01mchecking consistency... [39;49;00mdone
> [01mpreparing documents... [39;49;00mdone
> [01mcopying assets... [39;49;00m[01mcopying static files... [39;49;00mdone
> [01mcopying extra files... [39;49;00mdone
> done
> [2K[01mwriting output... [39;49;00m[ 33%] [32mchapter[39;49;00m
> [2K[01mwriting output... [39;49;00m[ 67%] [32mchapter-i[39;49;00m
> [2K[01mwriting output... [39;49;00m[100%] [32mindex[39;49;00m
>
> [01mgenerating indices... [39;49;00mgenindex done
> [01mwriting additional pages... [39;49;00msearch done
> [01mdumping search index in English (code: en)... [39;49;00mdone
> [01mdumping object inventory... [39;49;00mdone
> [01mbuild succeeded.[39;49;00m
>
> The HTML pages are in tests/examples/default/_build/html.
>
> # warning:
>
> _________________________ test_no_urls_prefix_setting
> __________________________
>
> app = <SphinxTestApp buildername='html'>
> status = <_io.StringIO object at 0x7f28e6422200>
> warning = <_io.StringIO object at 0x7f28e6422710>
>
> @pytest.mark.sphinx(
> srcdir=srcdir,
> confoverrides={
> 'notfound_no_urls_prefix': True,
> },
> )
> def test_no_urls_prefix_setting(app, status, warning):
> app.build()
> path = app.outdir / '404.html'
> assert path.exists()
>
> content = open(path).read()
>
> chunks = [
> # sidebar URLs
> '<h1 class="logo"><a href="/index.html">Python</a></h1>',
> '<form class="search" action="/search.html" method="get">',
> '<li><a href="/index.html">Documentation overview</a><ul>',
>
> # resources
> _get_css_html_link_tag('', '', 'alabaster.css'),
> _get_css_html_link_tag('', '', 'pygments.css'),
> '<link rel="stylesheet" href="/_static/custom.css"
> type="text/css" />',
> ]
>
> for chunk in chunks:
> > assert chunk in content
> E assert '<link rel="stylesheet" type="text/css"
> href="/_static/alabaster.css" />' in '<!DOCTYPE html>\n\n<html lang="en">\n
> <head>\n <meta charset="utf-8" />\n <meta name="viewport"
> content="width..."https://github.com/bitprophet/alabaster">Alabaster
> 0.7.12</a>\n \n </div>\n\n \n\n \n </body>\n</html>'
>
> tests/test_urls.py:210: AssertionError
> --------------------------- Captured stdout teardown
> ---------------------------
> # testroot: root
> # builder: html
> # srcdir:
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-notfound-page/build/tests/examples/default
> # outdir:
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-notfound-page/build/tests/examples/default/_build/html
> # status:
> [01mRunning Sphinx v7.1.1[39;49;00m
> [01mbuilding [mo]: [39;49;00mtargets for 0 po files that are out of date
> [01mwriting output... [39;49;00m
> [01mbuilding [html]: [39;49;00mtargets for 3 source files that are out of
> date
> [01mupdating environment: [39;49;00m[new config] 3 added, 0 changed, 0
> removed
> [2K[01mreading sources... [39;49;00m[ 33%] [35mchapter[39;49;00m
> [2K[01mreading sources... [39;49;00m[ 67%] [35mchapter-i[39;49;00m
> [2K[01mreading sources... [39;49;00m[100%] [35mindex[39;49;00m
>
> [01mlooking for now-outdated files... [39;49;00mnone found
> [01mpickling environment... [39;49;00mdone
> [01mchecking consistency... [39;49;00mdone
> [01mpreparing documents... [39;49;00mdone
> [01mcopying assets... [39;49;00m[01mcopying static files... [39;49;00mdone
> [01mcopying extra files... [39;49;00mdone
> done
> [2K[01mwriting output... [39;49;00m[ 33%] [32mchapter[39;49;00m
> [2K[01mwriting output... [39;49;00m[ 67%] [32mchapter-i[39;49;00m
> [2K[01mwriting output... [39;49;00m[100%] [32mindex[39;49;00m
>
> [01mgenerating indices... [39;49;00mgenindex done
> [01mwriting additional pages... [39;49;00msearch done
> [01mdumping search index in English (code: en)... [39;49;00mdone
> [01mdumping object inventory... [39;49;00mdone
> [01mbuild succeeded.[39;49;00m
>
> The HTML pages are in tests/examples/default/_build/html.
>
> # warning:
>
> ___________________________ test_urls_prefix_setting
> ___________________________
>
> app = <SphinxTestApp buildername='html'>
> status = <_io.StringIO object at 0x7f28e64224d0>
> warning = <_io.StringIO object at 0x7f28e644d870>
>
> @pytest.mark.sphinx(
> srcdir=srcdir,
> confoverrides={
> 'notfound_urls_prefix': '/language/version/',
> },
> )
> def test_urls_prefix_setting(app, status, warning):
> app.build()
> path = app.outdir / '404.html'
> assert path.exists()
>
> content = open(path).read()
>
> chunks = [
> # sidebar URLs
> '<h1 class="logo"><a
> href="/language/version/index.html">Python</a></h1>',
> '<form class="search" action="/language/version/search.html"
> method="get">',
> '<li><a href="/language/version/index.html">Documentation
> overview</a><ul>',
>
> # favicon and logo
> '<link rel="shortcut icon"
> href="/language/version/_static/favicon.png"/>',
> '<img class="logo" src="/language/version/_static/logo.svg"
> alt="Logo"/>',
>
> # resources
> _get_css_html_link_tag('language', 'version', 'alabaster.css'),
> _get_css_html_link_tag('language', 'version', 'pygments.css'),
> '<link rel="stylesheet"
> href="/language/version/_static/custom.css" type="text/css" />',
> ]
>
> for chunk in chunks:
> > assert chunk in content
> E assert '<link rel="shortcut icon"
> href="/language/version/_static/favicon.png"/>' in '<!DOCTYPE html>\n\n<html
> lang="en">\n <head>\n <meta charset="utf-8" />\n <meta name="viewport"
> content="width..."https://github.com/bitprophet/alabaster">Alabaster
> 0.7.12</a>\n \n </div>\n\n \n\n \n </body>\n</html>'
>
> tests/test_urls.py:243: AssertionError
> --------------------------- Captured stdout teardown
> ---------------------------
> # testroot: root
> # builder: html
> # srcdir:
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-notfound-page/build/tests/examples/default
> # outdir:
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-notfound-page/build/tests/examples/default/_build/html
> # status:
> [01mRunning Sphinx v7.1.1[39;49;00m
> [01mbuilding [mo]: [39;49;00mtargets for 0 po files that are out of date
> [01mwriting output... [39;49;00m
> [01mbuilding [html]: [39;49;00mtargets for 3 source files that are out of
> date
> [01mupdating environment: [39;49;00m[new config] 3 added, 0 changed, 0
> removed
> [2K[01mreading sources... [39;49;00m[ 33%] [35mchapter[39;49;00m
> [2K[01mreading sources... [39;49;00m[ 67%] [35mchapter-i[39;49;00m
> [2K[01mreading sources... [39;49;00m[100%] [35mindex[39;49;00m
>
> [01mlooking for now-outdated files... [39;49;00mnone found
> [01mpickling environment... [39;49;00mdone
> [01mchecking consistency... [39;49;00mdone
> [01mpreparing documents... [39;49;00mdone
> [01mcopying assets... [39;49;00m[01mcopying static files... [39;49;00mdone
> [01mcopying extra files... [39;49;00mdone
> done
> [2K[01mwriting output... [39;49;00m[ 33%] [32mchapter[39;49;00m
> [2K[01mwriting output... [39;49;00m[ 67%] [32mchapter-i[39;49;00m
> [2K[01mwriting output... [39;49;00m[100%] [32mindex[39;49;00m
>
> [01mgenerating indices... [39;49;00mgenindex done
> [01mwriting additional pages... [39;49;00msearch done
> [01mdumping search index in English (code: en)... [39;49;00mdone
> [01mdumping object inventory... [39;49;00mdone
> [01mbuild succeeded.[39;49;00m
>
> The HTML pages are in tests/examples/default/_build/html.
>
> # warning:
>
> ________________________ test_urls_prefix_setting_none
> _________________________
>
> app = <SphinxTestApp buildername='html'>
> status = <_io.StringIO object at 0x7f28e644ecb0>
> warning = <_io.StringIO object at 0x7f28e644f130>
>
> @pytest.mark.sphinx(
> srcdir=srcdir,
> confoverrides={
> 'notfound_urls_prefix': None,
> },
> )
> def test_urls_prefix_setting_none(app, status, warning):
> app.build()
> path = app.outdir / '404.html'
> assert path.exists()
>
> content = open(path).read()
>
> chunks = [
> # sidebar URLs
> '<h1 class="logo"><a href="/index.html">Python</a></h1>',
> '<form class="search" action="/search.html" method="get">',
> '<li><a href="/index.html">Documentation overview</a><ul>',
>
> # favicon and logo
> '<link rel="shortcut icon" href="/_static/favicon.png"/>',
> '<img class="logo" src="/_static/logo.svg" alt="Logo"/>',
>
> # resources
> _get_css_html_link_tag('', '', 'alabaster.css'),
> _get_css_html_link_tag('', '', 'pygments.css'),
> '<link rel="stylesheet" href="/_static/custom.css"
> type="text/css" />',
> ]
>
> for chunk in chunks:
> > assert chunk in content
> E assert '<link rel="shortcut icon" href="/_static/favicon.png"/>'
> in '<!DOCTYPE html>\n\n<html lang="en">\n <head>\n <meta charset="utf-8"
> />\n <meta name="viewport"
> content="width..."https://github.com/bitprophet/alabaster">Alabaster
> 0.7.12</a>\n \n </div>\n\n \n\n \n </body>\n</html>'
>
> tests/test_urls.py:276: AssertionError
> --------------------------- Captured stdout teardown
> ---------------------------
> # testroot: root
> # builder: html
> # srcdir:
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-notfound-page/build/tests/examples/default
> # outdir:
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-notfound-page/build/tests/examples/default/_build/html
> # status:
> [01mRunning Sphinx v7.1.1[39;49;00m
> [01mbuilding [mo]: [39;49;00mtargets for 0 po files that are out of date
> [01mwriting output... [39;49;00m
> [01mbuilding [html]: [39;49;00mtargets for 3 source files that are out of
> date
> [01mupdating environment: [39;49;00m[new config] 3 added, 0 changed, 0
> removed
> [2K[01mreading sources... [39;49;00m[ 33%] [35mchapter[39;49;00m
> [2K[01mreading sources... [39;49;00m[ 67%] [35mchapter-i[39;49;00m
> [2K[01mreading sources... [39;49;00m[100%] [35mindex[39;49;00m
>
> [01mlooking for now-outdated files... [39;49;00mnone found
> [01mpickling environment... [39;49;00mdone
> [01mchecking consistency... [39;49;00mdone
> [01mpreparing documents... [39;49;00mdone
> [01mcopying assets... [39;49;00m[01mcopying static files... [39;49;00mdone
> [01mcopying extra files... [39;49;00mdone
> done
> [2K[01mwriting output... [39;49;00m[ 33%] [32mchapter[39;49;00m
> [2K[01mwriting output... [39;49;00m[ 67%] [32mchapter-i[39;49;00m
> [2K[01mwriting output... [39;49;00m[100%] [32mindex[39;49;00m
>
> [01mgenerating indices... [39;49;00mgenindex done
> [01mwriting additional pages... [39;49;00msearch done
> [01mdumping search index in English (code: en)... [39;49;00mdone
> [01mdumping object inventory... [39;49;00mdone
> [01mbuild succeeded, 1 warning.[39;49;00m
>
> The HTML pages are in tests/examples/default/_build/html.
>
> # warning:
> [91mWARNING: The config value `notfound_urls_prefix' has type `NoneType',
> defaults to `str'.[39;49;00m
>
> ____________________ test_no_urls_prefix_setting_preference
> ____________________
>
> app = <SphinxTestApp buildername='html'>
> status = <_io.StringIO object at 0x7f28e644ed40>
> warning = <_io.StringIO object at 0x7f28e644e830>
>
> @pytest.mark.sphinx(
> srcdir=srcdir,
> confoverrides={
> 'notfound_default_language': 'es',
> 'notfound_default_version': 'customversion',
> 'notfound_no_urls_prefix': True,
> },
> )
> def test_no_urls_prefix_setting_preference(app, status, warning):
> app.build()
> path = app.outdir / '404.html'
> assert path.exists()
>
> content = open(path).read()
>
> chunks = [
> # sidebar URLs
> '<h1 class="logo"><a href="/index.html">Python</a></h1>',
> '<form class="search" action="/search.html" method="get">',
> '<li><a href="/index.html">Documentation overview</a><ul>',
>
> # resources
> _get_css_html_link_tag('', '', 'alabaster.css'),
> _get_css_html_link_tag('', '', 'pygments.css'),
> '<link rel="stylesheet" href="/_static/custom.css"
> type="text/css" />',
> ]
>
> for chunk in chunks:
> > assert chunk in content
> E assert '<link rel="stylesheet" type="text/css"
> href="/_static/alabaster.css" />' in '<!DOCTYPE html>\n\n<html lang="en">\n
> <head>\n <meta charset="utf-8" />\n <meta name="viewport"
> content="width..."https://github.com/bitprophet/alabaster">Alabaster
> 0.7.12</a>\n \n </div>\n\n \n\n \n </body>\n</html>'
>
> tests/test_urls.py:307: AssertionError
> --------------------------- Captured stdout teardown
> ---------------------------
> # testroot: root
> # builder: html
> # srcdir:
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-notfound-page/build/tests/examples/default
> # outdir:
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-notfound-page/build/tests/examples/default/_build/html
> # status:
> [01mRunning Sphinx v7.1.1[39;49;00m
> [01mbuilding [mo]: [39;49;00mtargets for 0 po files that are out of date
> [01mwriting output... [39;49;00m
> [01mbuilding [html]: [39;49;00mtargets for 3 source files that are out of
> date
> [01mupdating environment: [39;49;00m[new config] 3 added, 0 changed, 0
> removed
> [2K[01mreading sources... [39;49;00m[ 33%] [35mchapter[39;49;00m
> [2K[01mreading sources... [39;49;00m[ 67%] [35mchapter-i[39;49;00m
> [2K[01mreading sources... [39;49;00m[100%] [35mindex[39;49;00m
>
> [01mlooking for now-outdated files... [39;49;00mnone found
> [01mpickling environment... [39;49;00mdone
> [01mchecking consistency... [39;49;00mdone
> [01mpreparing documents... [39;49;00mdone
> [01mcopying assets... [39;49;00m[01mcopying static files... [39;49;00mdone
> [01mcopying extra files... [39;49;00mdone
> done
> [2K[01mwriting output... [39;49;00m[ 33%] [32mchapter[39;49;00m
> [2K[01mwriting output... [39;49;00m[ 67%] [32mchapter-i[39;49;00m
> [2K[01mwriting output... [39;49;00m[100%] [32mindex[39;49;00m
>
> [01mgenerating indices... [39;49;00mgenindex done
> [01mwriting additional pages... [39;49;00msearch done
> [01mdumping search index in English (code: en)... [39;49;00mdone
> [01mdumping object inventory... [39;49;00mdone
> [01mbuild succeeded.[39;49;00m
>
> The HTML pages are in tests/examples/default/_build/html.
>
> # warning:
>
> ____________________ test_default_version_language_setting
> _____________________
>
> app = <SphinxTestApp buildername='html'>
> status = <_io.StringIO object at 0x7f28e5fdf9a0>
> warning = <_io.StringIO object at 0x7f28e5fdfbe0>
>
> @pytest.mark.sphinx(
> srcdir=srcdir,
> confoverrides={
> 'notfound_default_version': 'v2.0.5',
> 'notfound_default_language': 'pt',
> },
> )
> def test_default_version_language_setting(app, status, warning):
> app.build()
> path = app.outdir / '404.html'
> assert path.exists()
>
> content = open(path).read()
>
> chunks = [
> # sidebar URLs
> '<h1 class="logo"><a
> href="/pt/v2.0.5/index.html">Python</a></h1>',
> '<form class="search" action="/pt/v2.0.5/search.html"
> method="get">',
> '<li><a href="/pt/v2.0.5/index.html">Documentation
> overview</a><ul>',
>
> # resource URLs
> _get_css_html_link_tag('pt', 'v2.0.5', 'alabaster.css'),
> _get_css_html_link_tag('pt', 'v2.0.5', 'pygments.css'),
> '<link rel="stylesheet" href="/pt/v2.0.5/_static/custom.css"
> type="text/css" />',
> ]
>
> for chunk in chunks:
> > assert chunk in content
> E assert '<link rel="stylesheet" type="text/css"
> href="/pt/v2.0.5/_static/alabaster.css" />' in '<!DOCTYPE html>\n\n<html
> lang="en">\n <head>\n <meta charset="utf-8" />\n <meta name="viewport"
> content="width..."https://github.com/bitprophet/alabaster">Alabaster
> 0.7.12</a>\n \n </div>\n\n \n\n \n </body>\n</html>'
>
> tests/test_urls.py:337: AssertionError
> --------------------------- Captured stdout teardown
> ---------------------------
> # testroot: root
> # builder: html
> # srcdir:
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-notfound-page/build/tests/examples/default
> # outdir:
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-notfound-page/build/tests/examples/default/_build/html
> # status:
> [01mRunning Sphinx v7.1.1[39;49;00m
> [01mbuilding [mo]: [39;49;00mtargets for 0 po files that are out of date
> [01mwriting output... [39;49;00m
> [01mbuilding [html]: [39;49;00mtargets for 3 source files that are out of
> date
> [01mupdating environment: [39;49;00m[new config] 3 added, 0 changed, 0
> removed
> [2K[01mreading sources... [39;49;00m[ 33%] [35mchapter[39;49;00m
> [2K[01mreading sources... [39;49;00m[ 67%] [35mchapter-i[39;49;00m
> [2K[01mreading sources... [39;49;00m[100%] [35mindex[39;49;00m
>
> [01mlooking for now-outdated files... [39;49;00mnone found
> [01mpickling environment... [39;49;00mdone
> [01mchecking consistency... [39;49;00mdone
> [01mpreparing documents... [39;49;00mdone
> [01mcopying assets... [39;49;00m[01mcopying static files... [39;49;00mdone
> [01mcopying extra files... [39;49;00mdone
> done
> [2K[01mwriting output... [39;49;00m[ 33%] [32mchapter[39;49;00m
> [2K[01mwriting output... [39;49;00m[ 67%] [32mchapter-i[39;49;00m
> [2K[01mwriting output... [39;49;00m[100%] [32mindex[39;49;00m
>
> [01mgenerating indices... [39;49;00mgenindex done
> [01mwriting additional pages... [39;49;00msearch done
> [01mdumping search index in English (code: en)... [39;49;00mdone
> [01mdumping object inventory... [39;49;00mdone
> [01mbuild succeeded.[39;49;00m
>
> The HTML pages are in tests/examples/default/_build/html.
>
> # warning:
>
> __________________________ test_custom_404_rst_source
> __________________________
>
> app = <SphinxTestApp buildername='html'>
> status = <_io.StringIO object at 0x7f28e644e5f0>
> warning = <_io.StringIO object at 0x7f28e644d870>
>
> @pytest.mark.sphinx(
> srcdir=rstsrcdir,
> confoverrides={
> 'version': '2.5.1',
> },
> )
> def test_custom_404_rst_source(app, status, warning):
> app.build()
> path = app.outdir / '404.html'
> assert path.exists()
>
> content = open(path).read()
>
> chunks = [
> # custom 404.rst file content
> '<title>Oh, oh - Page not found — Python
> documentation</title>',
> '<p>This is a custom 404.rst file.</p>',
> '<p>This file should be rendered instead of the default one.</p>',
> "<p>Variables Sphinx substitution should be allowed
> here.\nExample, version: 2.5.1.</p>",
>
> # sidebar URLs
> '<h1 class="logo"><a
> href="/en/latest/index.html">Python</a></h1>',
> '<form class="search" action="/en/latest/search.html"
> method="get">',
> '<li><a href="/en/latest/index.html">Documentation
> overview</a><ul>',
>
> # resources
> _get_css_html_link_tag('en', 'latest', 'alabaster.css'),
> _get_css_html_link_tag('en', 'latest', 'pygments.css'),
> '<link rel="stylesheet" href="/en/latest/_static/custom.css"
> type="text/css" />',
> ]
>
> for chunk in chunks:
> > assert chunk in content
> E assert '<link rel="stylesheet" type="text/css"
> href="/en/latest/_static/alabaster.css" />' in '<!DOCTYPE html>\n\n<html
> lang="en">\n <head>\n <meta charset="utf-8" />\n <meta name="viewport"
> content="width...latest/_sources/404.rst.txt"\n rel="nofollow">Page
> source</a>\n </div>\n\n \n\n \n </body>\n</html>'
>
> tests/test_urls.py:401: AssertionError
> --------------------------- Captured stdout teardown
> ---------------------------
> # testroot: root
> # builder: html
> # srcdir:
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-notfound-page/build/tests/examples/404rst
> # outdir:
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-notfound-page/build/tests/examples/404rst/_build/html
> # status:
> [01mRunning Sphinx v7.1.1[39;49;00m
> [01mbuilding [mo]: [39;49;00mtargets for 0 po files that are out of date
> [01mwriting output... [39;49;00m
> [01mbuilding [html]: [39;49;00mtargets for 2 source files that are out of
> date
> [01mupdating environment: [39;49;00m[new config] 2 added, 0 changed, 0
> removed
> [2K[01mreading sources... [39;49;00m[ 50%] [35m404[39;49;00m
> [2K[01mreading sources... [39;49;00m[100%] [35mindex[39;49;00m
>
> [01mlooking for now-outdated files... [39;49;00mnone found
> [01mpickling environment... [39;49;00mdone
> [01mchecking consistency... [39;49;00mdone
> [01mpreparing documents... [39;49;00mdone
> [01mcopying assets... [39;49;00m[01mcopying static files... [39;49;00mdone
> [01mcopying extra files... [39;49;00mdone
> done
> [2K[01mwriting output... [39;49;00m[ 50%] [32m404[39;49;00m
> [2K[01mwriting output... [39;49;00m[100%] [32mindex[39;49;00m
>
> [01mgenerating indices... [39;49;00mgenindex done
> [01mwriting additional pages... [39;49;00msearch done
> [2K[01mcopying images... [39;49;00m[ 33%] [33mtest.png[39;49;00m
> [2K[01mcopying images... [39;49;00m[ 67%]
> [33mimages/loudly-crying-face.png[39;49;00m
> [2K[01mcopying images... [39;49;00m[100%] [33mhttps.png[39;49;00m
>
> [01mdumping search index in English (code: en)... [39;49;00mdone
> [01mdumping object inventory... [39;49;00mdone
> [01mbuild succeeded.[39;49;00m
>
> The HTML pages are in tests/examples/404rst/_build/html.
>
> # warning:
>
> ________________________ test_urls_for_dirhtml_builder
> _________________________
>
> app = <SphinxTestApp buildername='dirhtml'>
> status = <_io.StringIO object at 0x7f28e5fdcdc0>
> warning = <_io.StringIO object at 0x7f28e6379fc0>
>
> @pytest.mark.sphinx(
> srcdir=srcdir,
> buildername='dirhtml',
> )
> def test_urls_for_dirhtml_builder(app, status, warning):
> app.build()
> path = app.outdir / '404' / 'index.html'
> assert path.exists()
>
> content = open(path).read()
>
> chunks = [
> # sidebar URLs
> '<form class="search" action="/en/latest/search/" method="get">',
> '<li class="toctree-l1"><a class="reference internal"
> href="/en/latest/chapter/">Chapter</a></li>',
>
> # resources
> _get_css_html_link_tag('en', 'latest', 'alabaster.css'),
> _get_css_html_link_tag('en', 'latest', 'pygments.css'),
> '<link rel="stylesheet" href="/en/latest/_static/custom.css"
> type="text/css" />',
> ]
>
> for chunk in chunks:
> > assert chunk in content
> E assert '<link rel="stylesheet" type="text/css"
> href="/en/latest/_static/alabaster.css" />' in '<!DOCTYPE html>\n\n<html
> lang="en">\n <head>\n <meta charset="utf-8" />\n <meta name="viewport"
> content="width..."https://github.com/bitprophet/alabaster">Alabaster
> 0.7.12</a>\n \n </div>\n\n \n\n \n </body>\n</html>'
>
> tests/test_urls.py:509: AssertionError
> --------------------------- Captured stdout teardown
> ---------------------------
> # testroot: root
> # builder: dirhtml
> # srcdir:
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-notfound-page/build/tests/examples/default
> # outdir:
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-notfound-page/build/tests/examples/default/_build/dirhtml
> # status:
> [01mRunning Sphinx v7.1.1[39;49;00m
> [01mbuilding [mo]: [39;49;00mtargets for 0 po files that are out of date
> [01mwriting output... [39;49;00m
> [01mbuilding [dirhtml]: [39;49;00mtargets for 3 source files that are out
> of date
> [01mupdating environment: [39;49;00m[new config] 3 added, 0 changed, 0
> removed
> [2K[01mreading sources... [39;49;00m[ 33%] [35mchapter[39;49;00m
> [2K[01mreading sources... [39;49;00m[ 67%] [35mchapter-i[39;49;00m
> [2K[01mreading sources... [39;49;00m[100%] [35mindex[39;49;00m
>
> [01mlooking for now-outdated files... [39;49;00mnone found
> [01mpickling environment... [39;49;00mdone
> [01mchecking consistency... [39;49;00mdone
> [01mpreparing documents... [39;49;00mdone
> [01mcopying assets... [39;49;00m[01mcopying static files... [39;49;00mdone
> [01mcopying extra files... [39;49;00mdone
> done
> [2K[01mwriting output... [39;49;00m[ 33%] [32mchapter[39;49;00m
> [2K[01mwriting output... [39;49;00m[ 67%] [32mchapter-i[39;49;00m
> [2K[01mwriting output... [39;49;00m[100%] [32mindex[39;49;00m
>
> [01mgenerating indices... [39;49;00mgenindex done
> [01mwriting additional pages... [39;49;00msearch done
> [01mdumping search index in English (code: en)... [39;49;00mdone
> [01mdumping object inventory... [39;49;00mdone
> [01mbuild succeeded.[39;49;00m
>
> The HTML pages are in tests/examples/default/_build/dirhtml.
>
> # warning:
>
> ___________________ test_no_prefix_urls_for_dirhtml_builder
> ____________________
>
> app = <SphinxTestApp buildername='dirhtml'>
> status = <_io.StringIO object at 0x7f28e63792d0>
> warning = <_io.StringIO object at 0x7f28e63793f0>
>
> @pytest.mark.sphinx(
> srcdir=srcdir,
> buildername='dirhtml',
> confoverrides={
> 'notfound_no_urls_prefix': True,
> },
> )
> def test_no_prefix_urls_for_dirhtml_builder(app, status, warning):
> app.build()
> path = app.outdir / '404' / 'index.html'
> assert path.exists()
>
> content = open(path).read()
>
> chunks = [
> # sidebar URLs
> '<form class="search" action="/search/" method="get">',
> '<li class="toctree-l1"><a class="reference internal"
> href="/chapter/">Chapter</a></li>',
>
> # resources
> _get_css_html_link_tag('', '', 'alabaster.css'),
> _get_css_html_link_tag('', '', 'pygments.css'),
> '<link rel="stylesheet" href="/_static/custom.css"
> type="text/css" />',
> ]
>
> for chunk in chunks:
> > assert chunk in content
> E assert '<link rel="stylesheet" type="text/css"
> href="/_static/alabaster.css" />' in '<!DOCTYPE html>\n\n<html lang="en">\n
> <head>\n <meta charset="utf-8" />\n <meta name="viewport"
> content="width..."https://github.com/bitprophet/alabaster">Alabaster
> 0.7.12</a>\n \n </div>\n\n \n\n \n </body>\n</html>'
>
> tests/test_urls.py:538: AssertionError
> --------------------------- Captured stdout teardown
> ---------------------------
> # testroot: root
> # builder: dirhtml
> # srcdir:
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-notfound-page/build/tests/examples/default
> # outdir:
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-notfound-page/build/tests/examples/default/_build/dirhtml
> # status:
> [01mRunning Sphinx v7.1.1[39;49;00m
> [01mbuilding [mo]: [39;49;00mtargets for 0 po files that are out of date
> [01mwriting output... [39;49;00m
> [01mbuilding [dirhtml]: [39;49;00mtargets for 3 source files that are out
> of date
> [01mupdating environment: [39;49;00m[new config] 3 added, 0 changed, 0
> removed
> [2K[01mreading sources... [39;49;00m[ 33%] [35mchapter[39;49;00m
> [2K[01mreading sources... [39;49;00m[ 67%] [35mchapter-i[39;49;00m
> [2K[01mreading sources... [39;49;00m[100%] [35mindex[39;49;00m
>
> [01mlooking for now-outdated files... [39;49;00mnone found
> [01mpickling environment... [39;49;00mdone
> [01mchecking consistency... [39;49;00mdone
> [01mpreparing documents... [39;49;00mdone
> [01mcopying assets... [39;49;00m[01mcopying static files... [39;49;00mdone
> [01mcopying extra files... [39;49;00mdone
> done
> [2K[01mwriting output... [39;49;00m[ 33%] [32mchapter[39;49;00m
> [2K[01mwriting output... [39;49;00m[ 67%] [32mchapter-i[39;49;00m
> [2K[01mwriting output... [39;49;00m[100%] [32mindex[39;49;00m
>
> [01mgenerating indices... [39;49;00mgenindex done
> [01mwriting additional pages... [39;49;00msearch done
> [01mdumping search index in English (code: en)... [39;49;00mdone
> [01mdumping object inventory... [39;49;00mdone
> [01mbuild succeeded.[39;49;00m
>
> The HTML pages are in tests/examples/default/_build/dirhtml.
>
> # warning:
>
> __________________________ test_sphinx_resource_urls
> ___________________________
>
> app = <SphinxTestApp buildername='html'>
> status = <_io.StringIO object at 0x7f28e637b9a0>
> warning = <_io.StringIO object at 0x7f28e6379090>
>
> @pytest.mark.sphinx(srcdir=srcdir)
> def test_sphinx_resource_urls(app, status, warning):
> app.build()
> path = app.outdir / '404.html'
> assert path.exists()
>
> content = open(path).read()
>
> chunks = [
> # Sphinx's resources URLs
> _get_js_html_link_tag('en', 'latest', 'jquery.js'),
> _get_js_html_link_tag('en', 'latest', 'underscore.js'),
> _get_js_html_link_tag('en', 'latest', 'doctools.js'),
> ]
>
> # This file was added to all the HTML pages in Sphinx>=1.8. However,
> it was
> # only required for search page. Sphinx>=3.4 fixes this and only adds
> it on
> # search. See
> (https://github.com/sphinx-doc/sphinx/blob/v3.4.0/CHANGES#L87)
> if (1, 8) <= sphinx.version_info < (3, 4, 0):
> chunks.append(
> _get_js_html_link_tag('en', 'latest', 'language_data.js'),
> )
>
> for chunk in chunks:
> > assert chunk in content
> E assert '<script src="/en/latest/_static/jquery.js"></script>' in
> '<!DOCTYPE html>\n\n<html lang="en">\n <head>\n <meta charset="utf-8"
> />\n <meta name="viewport"
> content="width..."https://github.com/bitprophet/alabaster">Alabaster
> 0.7.12</a>\n \n </div>\n\n \n\n \n </body>\n</html>'
>
> tests/test_urls.py:565: AssertionError
> --------------------------- Captured stdout teardown
> ---------------------------
> # testroot: root
> # builder: html
> # srcdir:
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-notfound-page/build/tests/examples/default
> # outdir:
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-notfound-page/build/tests/examples/default/_build/html
> # status:
> [01mRunning Sphinx v7.1.1[39;49;00m
> [01mbuilding [mo]: [39;49;00mtargets for 0 po files that are out of date
> [01mwriting output... [39;49;00m
> [01mbuilding [html]: [39;49;00mtargets for 3 source files that are out of
> date
> [01mupdating environment: [39;49;00m[new config] 3 added, 0 changed, 0
> removed
> [2K[01mreading sources... [39;49;00m[ 33%] [35mchapter[39;49;00m
> [2K[01mreading sources... [39;49;00m[ 67%] [35mchapter-i[39;49;00m
> [2K[01mreading sources... [39;49;00m[100%] [35mindex[39;49;00m
>
> [01mlooking for now-outdated files... [39;49;00mnone found
> [01mpickling environment... [39;49;00mdone
> [01mchecking consistency... [39;49;00mdone
> [01mpreparing documents... [39;49;00mdone
> [01mcopying assets... [39;49;00m[01mcopying static files... [39;49;00mdone
> [01mcopying extra files... [39;49;00mdone
> done
> [2K[01mwriting output... [39;49;00m[ 33%] [32mchapter[39;49;00m
> [2K[01mwriting output... [39;49;00m[ 67%] [32mchapter-i[39;49;00m
> [2K[01mwriting output... [39;49;00m[100%] [32mindex[39;49;00m
>
> [01mgenerating indices... [39;49;00mgenindex done
> [01mwriting additional pages... [39;49;00msearch done
> [01mdumping search index in English (code: en)... [39;49;00mdone
> [01mdumping object inventory... [39;49;00mdone
> [01mbuild succeeded.[39;49;00m
>
> The HTML pages are in tests/examples/default/_build/html.
>
> # warning:
>
> ______________________ test_toctree_urls_notfound_default
> ______________________
>
> app = <SphinxTestApp buildername='html'>
> status = <_io.StringIO object at 0x7f28e6379bd0>
> warning = <_io.StringIO object at 0x7f28e637ba30>
>
> @pytest.mark.sphinx(
> srcdir=srcdir,
> confoverrides={
> 'notfound_default_version': 'default',
> 'notfound_default_language': 'ja',
> },
> )
> def test_toctree_urls_notfound_default(app, status, warning):
> app.build()
> path = app.outdir / '404.html'
> assert path.exists()
>
> content = open(path).read()
>
> chunks = [
> # sidebar URLs
> '<form class="search" action="/ja/default/search.html"
> method="get">',
> '<li class="toctree-l1"><a class="reference internal"
> href="/ja/default/chapter.html">Chapter</a></li>',
>
> # resources
> _get_css_html_link_tag('ja', 'default', 'alabaster.css'),
> _get_css_html_link_tag('ja', 'default', 'pygments.css'),
> '<link rel="stylesheet" href="/ja/default/_static/custom.css"
> type="text/css" />',
> ]
>
> for chunk in chunks:
> > assert chunk in content
> E assert '<link rel="stylesheet" type="text/css"
> href="/ja/default/_static/alabaster.css" />' in '<!DOCTYPE html>\n\n<html
> lang="en">\n <head>\n <meta charset="utf-8" />\n <meta name="viewport"
> content="width..."https://github.com/bitprophet/alabaster">Alabaster
> 0.7.12</a>\n \n </div>\n\n \n\n \n </body>\n</html>'
>
> tests/test_urls.py:594: AssertionError
> --------------------------- Captured stdout teardown
> ---------------------------
> # testroot: root
> # builder: html
> # srcdir:
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-notfound-page/build/tests/examples/default
> # outdir:
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-notfound-page/build/tests/examples/default/_build/html
> # status:
> [01mRunning Sphinx v7.1.1[39;49;00m
> [01mbuilding [mo]: [39;49;00mtargets for 0 po files that are out of date
> [01mwriting output... [39;49;00m
> [01mbuilding [html]: [39;49;00mtargets for 3 source files that are out of
> date
> [01mupdating environment: [39;49;00m[new config] 3 added, 0 changed, 0
> removed
> [2K[01mreading sources... [39;49;00m[ 33%] [35mchapter[39;49;00m
> [2K[01mreading sources... [39;49;00m[ 67%] [35mchapter-i[39;49;00m
> [2K[01mreading sources... [39;49;00m[100%] [35mindex[39;49;00m
>
> [01mlooking for now-outdated files... [39;49;00mnone found
> [01mpickling environment... [39;49;00mdone
> [01mchecking consistency... [39;49;00mdone
> [01mpreparing documents... [39;49;00mdone
> [01mcopying assets... [39;49;00m[01mcopying static files... [39;49;00mdone
> [01mcopying extra files... [39;49;00mdone
> done
> [2K[01mwriting output... [39;49;00m[ 33%] [32mchapter[39;49;00m
> [2K[01mwriting output... [39;49;00m[ 67%] [32mchapter-i[39;49;00m
> [2K[01mwriting output... [39;49;00m[100%] [32mindex[39;49;00m
>
> [01mgenerating indices... [39;49;00mgenindex done
> [01mwriting additional pages... [39;49;00msearch done
> [01mdumping search index in English (code: en)... [39;49;00mdone
> [01mdumping object inventory... [39;49;00mdone
> [01mbuild succeeded.[39;49;00m
>
> The HTML pages are in tests/examples/default/_build/html.
>
> # warning:
>
> =============================== warnings summary
> ===============================
> ../../../../../../usr/lib/python3/dist-packages/babel/messages/catalog.py:13
> /usr/lib/python3/dist-packages/babel/messages/catalog.py:13:
> DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
> from cgi import parse_header
>
> .pybuild/cpython3_3.11_sphinx-notfound-page/build/tests/test_urls.py: 27
> warnings
> /<<PKGBUILDDIR>>/notfound/utils.py:34: PendingDeprecationWarning:
> nodes.Node.traverse() is obsoleted by Node.findall().
> for node in doctree.traverse(nodetype):
>
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> =========================== short test summary info
> ============================
> FAILED tests/test_urls.py::test_default_settings - assert '<link
> rel="shortcu...
> FAILED tests/test_urls.py::test_default_language_setting - assert '<link
> rel=...
> FAILED tests/test_urls.py::test_default_version_setting - assert '<link
> rel="...
> FAILED tests/test_urls.py::test_no_urls_prefix_setting - assert '<link
> rel="s...
> FAILED tests/test_urls.py::test_urls_prefix_setting - assert '<link
> rel="shor...
> FAILED tests/test_urls.py::test_urls_prefix_setting_none - assert '<link
> rel=...
> FAILED tests/test_urls.py::test_no_urls_prefix_setting_preference - assert
> '<...
> FAILED tests/test_urls.py::test_default_version_language_setting - assert
> '<l...
> FAILED tests/test_urls.py::test_custom_404_rst_source - assert '<link
> rel="st...
> FAILED tests/test_urls.py::test_urls_for_dirhtml_builder - assert '<link
> rel=...
> FAILED tests/test_urls.py::test_no_prefix_urls_for_dirhtml_builder - assert
> '...
> FAILED tests/test_urls.py::test_sphinx_resource_urls - assert '<script
> src="/...
> FAILED tests/test_urls.py::test_toctree_urls_notfound_default - assert
> '<link...
> ============ 13 failed, 16 passed, 1 xfailed, 28 warnings in 6.10s
> =============
> E: pybuild pybuild:388: test: plugin pyproject failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-notfound-page/build;
> python3.11 -m pytest tests
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.11
> returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2023/07/30/exp/sphinx-notfound-page_0.8.3-2_unstable_sphinx-exp.log
Please see [1] for Sphinx changelog and [2] for Docutils changelog.
Also see [3] for the list of deprecated/removed APIs in Sphinx and possible
alternatives to them.
Some notable changes in Sphinx 6 and Sphinx 7:
- Sphinx no longer includes jquery.js and underscore.js by default.
Please use python3-sphinxcontrib.jquery package if you are using a custom
template and it still needs jquery.
- The setup.py build_sphinx command was removed. Please instead call
sphinx-build or "python3 -m sphinx" directly.
- For packages using the extlinks extension, the caption should contain
exactly one "%s" placeholder (if caption is not None).
In case you have questions, please Cc [email protected] on reply.
[1]: https://www.sphinx-doc.org/en/master/changes.html
[2]:
https://repo.or.cz/docutils.git/blob/refs/tags/docutils-0.20.1:/RELEASE-NOTES.txt
[3]:
https://www.sphinx-doc.org/en/master/extdev/deprecated.html#dev-deprecated-apis
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=sphinx7.1;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=sphinx7.1&[email protected]&allbugs=1&cseverity=1&ctags=1&caffected=1#results
If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects