Skip to content

0.4.3: pytest is failing #47

Description

@kloczek

I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.

  • python3 -sBm build -w --no-isolation
  • because I'm calling build with --no-isolation I'm using during all processes only locally installed modules
  • install .whl file in </install/prefix>
  • run pytest with PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>

I'm not sure but probably extras-require needs to be updated fro sphinx 5.x.
Here is pytest output:

Details
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-extras-require-0.4.3-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-extras-require-0.4.3-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.2, pluggy-1.0.0
Test session started at 05:09:33
rootdir: /home/tkloczko/rpmbuild/BUILD/extras_require-0.4.3, configfile: tox.ini
plugins: datadir-1.3.1, regressions-2.3.1, timeout-2.1.0
timeout: 300.0s
timeout method: signal
timeout func_only: False
collected 108 items

tests/test_directive.py ......................................................FFFFFFF.......                                                                         [ 62%]
tests/test_flag.py ..................                                                                                                                                [ 79%]
tests/test_from___pkginfo__.py ....                                                                                                                                  [ 83%]
tests/test_from_file.py ....                                                                                                                                         [ 87%]
tests/test_from_flit.py ....                                                                                                                                         [ 90%]
tests/test_from_pyproject.py ....                                                                                                                                    [ 94%]
tests/test_from_setup_cfg.py .....                                                                                                                                   [ 99%]
tests/test_setup.py .                                                                                                                                                [100%]

================================================================================= FAILURES =================================================================================
_______________________________________________________________________ test_output[flit_demo.html] ________________________________________________________________________

page = <!DOCTYPE html>
<html lang="en"><head>
    <meta charset="utf-8"/>
    <meta content="width=device-width, initial-scal...
        </div>
      </div>

      <div class="clearer"></div>
    </div>






</body></html>
html_regression = <sphinx_toolbox.testing.HTMLRegressionFixture object at 0x7f54aeccd670>

    @pytest.mark.parametrize(
                "page",
                [
                                "flit_demo.html",
                                "scopes_demo.html",
                                "setup_cfg_demo.html",
                                "requirements_file_demo.html",
                                "pkginfo_demo.html",
                                "manual_demo.html",
                                ],
                indirect=True
                )
    def test_output(page: BeautifulSoup, html_regression: HTMLRegressionFixture) -> None:

>       html_regression.check(page, jinja2=True)
E    AssertionError: FILES DIFFER:
E    /tmp/pytest-of-tkloczko/pytest-83/test_output_flit_demo_html_0/test_directive_/test_output_flit_demo_html_.html
E    /tmp/pytest-of-tkloczko/pytest-83/test_output_flit_demo_html_0/test_directive_/test_output_flit_demo_html_.obtained.html
E    HTML DIFF: /tmp/pytest-of-tkloczko/pytest-83/test_output_flit_demo_html_0/test_directive_/test_output_flit_demo_html_.obtained.diff.html
E    ---
E    +++
E    @@ -1,9 +1,9 @@
E     <!DOCTYPE html>
E    -<html>
E    +<html lang="en">
E      <head>
E       <meta charset="utf-8"/>
E       <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
E    -  <meta content="Docutils 0.17.1: http://docutils.sourceforge.net/" name="generator"/>
E    +  <meta content="Docutils 0.18.1: http://docutils.sourceforge.net/" name="generator"/>
E       <title>
E        flit Demo — Python  documentation
E       </title>
E    @@ -12,6 +12,8 @@
E       <script src="_static/jquery.js">
E       </script>
E       <script src="_static/underscore.js">
E    +  </script>
E    +  <script src="_static/_sphinx_javascript_frameworks_compat.js">
E       </script>
E       <script src="_static/doctools.js">
E       </script>
E    @@ -25,7 +27,7 @@
E           <section id="flit-demo">
E            <h1>
E             flit Demo
E    -        <a class="headerlink" href="#flit-demo" title="Permalink to this headline">
E    +        <a class="headerlink" href="#flit-demo" title="Permalink to this heading">
E              ¶
E             </a>
E            </h1>

tests/test_directive.py:234: AssertionError
------------------------------------------------------------------------- Captured stdout teardown -------------------------------------------------------------------------
# testroot: root
# builder: html
# srcdir: /tmp/pytest-of-tkloczko/pytest-83/root
# outdir: /tmp/pytest-of-tkloczko/pytest-83/root/_build/html
# status:
Running Sphinx v5.1.1
loading pickled environment... done
building [mo]: all of 0 po files
building [html]: all source files
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
preparing documents... done
writing output... [100%] setup_cfg_demo
generating indices... genindex done
writing additional pages... search done
copying static files... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded.

The HTML pages are in ../../../../../tmp/pytest-of-tkloczko/pytest-83/root/_build/html.

# warning:

______________________________________________________________________ test_output[scopes_demo.html] _______________________________________________________________________

page = <!DOCTYPE html>
<html lang="en"><head>
    <meta charset="utf-8"/>
    <meta content="width=device-width, initial-scal...
        </div>
      </div>

      <div class="clearer"></div>
    </div>






</body></html>
html_regression = <sphinx_toolbox.testing.HTMLRegressionFixture object at 0x7f54aecad5e0>

    @pytest.mark.parametrize(
                "page",
                [
                                "flit_demo.html",
                                "scopes_demo.html",
                                "setup_cfg_demo.html",
                                "requirements_file_demo.html",
                                "pkginfo_demo.html",
                                "manual_demo.html",
                                ],
                indirect=True
                )
    def test_output(page: BeautifulSoup, html_regression: HTMLRegressionFixture) -> None:

>       html_regression.check(page, jinja2=True)
E    AssertionError: FILES DIFFER:
E    /tmp/pytest-of-tkloczko/pytest-83/test_output_scopes_demo_html_0/test_directive_/test_output_scopes_demo_html_.html
E    /tmp/pytest-of-tkloczko/pytest-83/test_output_scopes_demo_html_0/test_directive_/test_output_scopes_demo_html_.obtained.html
E    HTML DIFF: /tmp/pytest-of-tkloczko/pytest-83/test_output_scopes_demo_html_0/test_directive_/test_output_scopes_demo_html_.obtained.diff.html
E    ---
E    +++
E    @@ -1,9 +1,9 @@
E     <!DOCTYPE html>
E    -<html>
E    +<html lang="en">
E      <head>
E       <meta charset="utf-8"/>
E       <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
E    -  <meta content="Docutils 0.17.1: http://docutils.sourceforge.net/" name="generator"/>
E    +  <meta content="Docutils 0.18.1: http://docutils.sourceforge.net/" name="generator"/>
E       <title>
E        Scopes Demo — Python  documentation
E       </title>
E    @@ -12,6 +12,8 @@
E       <script src="_static/jquery.js">
E       </script>
E       <script src="_static/underscore.js">
E    +  </script>
E    +  <script src="_static/_sphinx_javascript_frameworks_compat.js">
E       </script>
E       <script src="_static/doctools.js">
E       </script>
E    @@ -25,7 +27,7 @@
E           <section id="scopes-demo">
E            <h1>
E             Scopes Demo
E    -        <a class="headerlink" href="#scopes-demo" title="Permalink to this headline">
E    +        <a class="headerlink" href="#scopes-demo" title="Permalink to this heading">
E              ¶
E             </a>
E            </h1>

tests/test_directive.py:234: AssertionError
------------------------------------------------------------------------- Captured stdout teardown -------------------------------------------------------------------------
# testroot: root
# builder: html
# srcdir: /tmp/pytest-of-tkloczko/pytest-83/root
# outdir: /tmp/pytest-of-tkloczko/pytest-83/root/_build/html
# status:
Running Sphinx v5.1.1
loading pickled environment... done
building [mo]: all of 0 po files
building [html]: all source files
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
preparing documents... done
writing output... [100%] setup_cfg_demo
generating indices... genindex done
writing additional pages... search done
copying static files... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded.

The HTML pages are in ../../../../../tmp/pytest-of-tkloczko/pytest-83/root/_build/html.

# warning:

_____________________________________________________________________ test_output[setup_cfg_demo.html] _____________________________________________________________________

page = <!DOCTYPE html>
<html lang="en"><head>
    <meta charset="utf-8"/>
    <meta content="width=device-width, initial-scal...
        </div>
      </div>

      <div class="clearer"></div>
    </div>






</body></html>
html_regression = <sphinx_toolbox.testing.HTMLRegressionFixture object at 0x7f54aeb30eb0>

    @pytest.mark.parametrize(
                "page",
                [
                                "flit_demo.html",
                                "scopes_demo.html",
                                "setup_cfg_demo.html",
                                "requirements_file_demo.html",
                                "pkginfo_demo.html",
                                "manual_demo.html",
                                ],
                indirect=True
                )
    def test_output(page: BeautifulSoup, html_regression: HTMLRegressionFixture) -> None:

>       html_regression.check(page, jinja2=True)
E    AssertionError: FILES DIFFER:
E    /tmp/pytest-of-tkloczko/pytest-83/test_output_setup_cfg_demo_htm0/test_directive_/test_output_setup_cfg_demo_html_.html
E    /tmp/pytest-of-tkloczko/pytest-83/test_output_setup_cfg_demo_htm0/test_directive_/test_output_setup_cfg_demo_html_.obtained.html
E    HTML DIFF: /tmp/pytest-of-tkloczko/pytest-83/test_output_setup_cfg_demo_htm0/test_directive_/test_output_setup_cfg_demo_html_.obtained.diff.html
E    ---
E    +++
E    @@ -1,9 +1,9 @@
E     <!DOCTYPE html>
E    -<html>
E    +<html lang="en">
E      <head>
E       <meta charset="utf-8"/>
E       <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
E    -  <meta content="Docutils 0.17.1: http://docutils.sourceforge.net/" name="generator"/>
E    +  <meta content="Docutils 0.18.1: http://docutils.sourceforge.net/" name="generator"/>
E       <title>
E        setup.cfg Demo — Python  documentation
E       </title>
E    @@ -12,6 +12,8 @@
E       <script src="_static/jquery.js">
E       </script>
E       <script src="_static/underscore.js">
E    +  </script>
E    +  <script src="_static/_sphinx_javascript_frameworks_compat.js">
E       </script>
E       <script src="_static/doctools.js">
E       </script>
E    @@ -25,7 +27,7 @@
E           <section id="setup-cfg-demo">
E            <h1>
E             setup.cfg Demo
E    -        <a class="headerlink" href="#setup-cfg-demo" title="Permalink to this headline">
E    +        <a class="headerlink" href="#setup-cfg-demo" title="Permalink to this heading">
E              ¶
E             </a>
E            </h1>

tests/test_directive.py:234: AssertionError
------------------------------------------------------------------------- Captured stdout teardown -------------------------------------------------------------------------
# testroot: root
# builder: html
# srcdir: /tmp/pytest-of-tkloczko/pytest-83/root
# outdir: /tmp/pytest-of-tkloczko/pytest-83/root/_build/html
# status:
Running Sphinx v5.1.1
loading pickled environment... done
building [mo]: all of 0 po files
building [html]: all source files
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
preparing documents... done
writing output... [100%] setup_cfg_demo
generating indices... genindex done
writing additional pages... search done
copying static files... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded.

The HTML pages are in ../../../../../tmp/pytest-of-tkloczko/pytest-83/root/_build/html.

# warning:

_________________________________________________________________ test_output[requirements_file_demo.html] _________________________________________________________________

page = <!DOCTYPE html>
<html lang="en"><head>
    <meta charset="utf-8"/>
    <meta content="width=device-width, initial-scal...
        </div>
      </div>

      <div class="clearer"></div>
    </div>






</body></html>
html_regression = <sphinx_toolbox.testing.HTMLRegressionFixture object at 0x7f54ae94b580>

    @pytest.mark.parametrize(
                "page",
                [
                                "flit_demo.html",
                                "scopes_demo.html",
                                "setup_cfg_demo.html",
                                "requirements_file_demo.html",
                                "pkginfo_demo.html",
                                "manual_demo.html",
                                ],
                indirect=True
                )
    def test_output(page: BeautifulSoup, html_regression: HTMLRegressionFixture) -> None:

>       html_regression.check(page, jinja2=True)
E    AssertionError: FILES DIFFER:
E    /tmp/pytest-of-tkloczko/pytest-83/test_output_requirements_file_0/test_directive_/test_output_requirements_file_demo_html_.html
E    /tmp/pytest-of-tkloczko/pytest-83/test_output_requirements_file_0/test_directive_/test_output_requirements_file_demo_html_.obtained.html
E    HTML DIFF: /tmp/pytest-of-tkloczko/pytest-83/test_output_requirements_file_0/test_directive_/test_output_requirements_file_demo_html_.obtained.diff.html
E    ---
E    +++
E    @@ -1,9 +1,9 @@
E     <!DOCTYPE html>
E    -<html>
E    +<html lang="en">
E      <head>
E       <meta charset="utf-8"/>
E       <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
E    -  <meta content="Docutils 0.17.1: http://docutils.sourceforge.net/" name="generator"/>
E    +  <meta content="Docutils 0.18.1: http://docutils.sourceforge.net/" name="generator"/>
E       <title>
E        requirements.txt Demo — Python  documentation
E       </title>
E    @@ -12,6 +12,8 @@
E       <script src="_static/jquery.js">
E       </script>
E       <script src="_static/underscore.js">
E    +  </script>
E    +  <script src="_static/_sphinx_javascript_frameworks_compat.js">
E       </script>
E       <script src="_static/doctools.js">
E       </script>
E    @@ -25,7 +27,7 @@
E           <section id="requirements-txt-demo">
E            <h1>
E             requirements.txt Demo
E    -        <a class="headerlink" href="#requirements-txt-demo" title="Permalink to this headline">
E    +        <a class="headerlink" href="#requirements-txt-demo" title="Permalink to this heading">
E              ¶
E             </a>
E            </h1>

tests/test_directive.py:234: AssertionError
------------------------------------------------------------------------- Captured stdout teardown -------------------------------------------------------------------------
# testroot: root
# builder: html
# srcdir: /tmp/pytest-of-tkloczko/pytest-83/root
# outdir: /tmp/pytest-of-tkloczko/pytest-83/root/_build/html
# status:
Running Sphinx v5.1.1
loading pickled environment... done
building [mo]: all of 0 po files
building [html]: all source files
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
preparing documents... done
writing output... [100%] setup_cfg_demo
generating indices... genindex done
writing additional pages... search done
copying static files... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded.

The HTML pages are in ../../../../../tmp/pytest-of-tkloczko/pytest-83/root/_build/html.

# warning:

______________________________________________________________________ test_output[pkginfo_demo.html] ______________________________________________________________________

page = <!DOCTYPE html>
<html lang="en"><head>
    <meta charset="utf-8"/>
    <meta content="width=device-width, initial-scal...
        </div>
      </div>

      <div class="clearer"></div>
    </div>






</body></html>
html_regression = <sphinx_toolbox.testing.HTMLRegressionFixture object at 0x7f54aeae3490>

    @pytest.mark.parametrize(
                "page",
                [
                                "flit_demo.html",
                                "scopes_demo.html",
                                "setup_cfg_demo.html",
                                "requirements_file_demo.html",
                                "pkginfo_demo.html",
                                "manual_demo.html",
                                ],
                indirect=True
                )
    def test_output(page: BeautifulSoup, html_regression: HTMLRegressionFixture) -> None:

>       html_regression.check(page, jinja2=True)
E    AssertionError: FILES DIFFER:
E    /tmp/pytest-of-tkloczko/pytest-83/test_output_pkginfo_demo_html_0/test_directive_/test_output_pkginfo_demo_html_.html
E    /tmp/pytest-of-tkloczko/pytest-83/test_output_pkginfo_demo_html_0/test_directive_/test_output_pkginfo_demo_html_.obtained.html
E    HTML DIFF: /tmp/pytest-of-tkloczko/pytest-83/test_output_pkginfo_demo_html_0/test_directive_/test_output_pkginfo_demo_html_.obtained.diff.html
E    ---
E    +++
E    @@ -1,9 +1,9 @@
E     <!DOCTYPE html>
E    -<html>
E    +<html lang="en">
E      <head>
E       <meta charset="utf-8"/>
E       <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
E    -  <meta content="Docutils 0.17.1: http://docutils.sourceforge.net/" name="generator"/>
E    +  <meta content="Docutils 0.18.1: http://docutils.sourceforge.net/" name="generator"/>
E       <title>
E        __pkginfo__ Demo — Python  documentation
E       </title>
E    @@ -12,6 +12,8 @@
E       <script src="_static/jquery.js">
E       </script>
E       <script src="_static/underscore.js">
E    +  </script>
E    +  <script src="_static/_sphinx_javascript_frameworks_compat.js">
E       </script>
E       <script src="_static/doctools.js">
E       </script>
E    @@ -25,7 +27,7 @@
E           <section id="pkginfo-demo">
E            <h1>
E             __pkginfo__ Demo
E    -        <a class="headerlink" href="#pkginfo-demo" title="Permalink to this headline">
E    +        <a class="headerlink" href="#pkginfo-demo" title="Permalink to this heading">
E              ¶
E             </a>
E            </h1>

tests/test_directive.py:234: AssertionError
------------------------------------------------------------------------- Captured stdout teardown -------------------------------------------------------------------------
# testroot: root
# builder: html
# srcdir: /tmp/pytest-of-tkloczko/pytest-83/root
# outdir: /tmp/pytest-of-tkloczko/pytest-83/root/_build/html
# status:
Running Sphinx v5.1.1
loading pickled environment... done
building [mo]: all of 0 po files
building [html]: all source files
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
preparing documents... done
writing output... [100%] setup_cfg_demo
generating indices... genindex done
writing additional pages... search done
copying static files... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded.

The HTML pages are in ../../../../../tmp/pytest-of-tkloczko/pytest-83/root/_build/html.

# warning:

______________________________________________________________________ test_output[manual_demo.html] _______________________________________________________________________

page = <!DOCTYPE html>
<html lang="en"><head>
    <meta charset="utf-8"/>
    <meta content="width=device-width, initial-scal...
        </div>
      </div>

      <div class="clearer"></div>
    </div>






</body></html>
html_regression = <sphinx_toolbox.testing.HTMLRegressionFixture object at 0x7f54aea011c0>

    @pytest.mark.parametrize(
                "page",
                [
                                "flit_demo.html",
                                "scopes_demo.html",
                                "setup_cfg_demo.html",
                                "requirements_file_demo.html",
                                "pkginfo_demo.html",
                                "manual_demo.html",
                                ],
                indirect=True
                )
    def test_output(page: BeautifulSoup, html_regression: HTMLRegressionFixture) -> None:

>       html_regression.check(page, jinja2=True)
E    AssertionError: FILES DIFFER:
E    /tmp/pytest-of-tkloczko/pytest-83/test_output_manual_demo_html_0/test_directive_/test_output_manual_demo_html_.html
E    /tmp/pytest-of-tkloczko/pytest-83/test_output_manual_demo_html_0/test_directive_/test_output_manual_demo_html_.obtained.html
E    HTML DIFF: /tmp/pytest-of-tkloczko/pytest-83/test_output_manual_demo_html_0/test_directive_/test_output_manual_demo_html_.obtained.diff.html
E    ---
E    +++
E    @@ -1,9 +1,9 @@
E     <!DOCTYPE html>
E    -<html>
E    +<html lang="en">
E      <head>
E       <meta charset="utf-8"/>
E       <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
E    -  <meta content="Docutils 0.17.1: http://docutils.sourceforge.net/" name="generator"/>
E    +  <meta content="Docutils 0.18.1: http://docutils.sourceforge.net/" name="generator"/>
E       <title>
E        Manual Demo — Python  documentation
E       </title>
E    @@ -12,6 +12,8 @@
E       <script src="_static/jquery.js">
E       </script>
E       <script src="_static/underscore.js">
E    +  </script>
E    +  <script src="_static/_sphinx_javascript_frameworks_compat.js">
E       </script>
E       <script src="_static/doctools.js">
E       </script>
E    @@ -25,7 +27,7 @@
E           <section id="manual-demo">
E            <h1>
E             Manual Demo
E    -        <a class="headerlink" href="#manual-demo" title="Permalink to this headline">
E    +        <a class="headerlink" href="#manual-demo" title="Permalink to this heading">
E              ¶
E             </a>
E            </h1>

tests/test_directive.py:234: AssertionError
------------------------------------------------------------------------- Captured stdout teardown -------------------------------------------------------------------------
# testroot: root
# builder: html
# srcdir: /tmp/pytest-of-tkloczko/pytest-83/root
# outdir: /tmp/pytest-of-tkloczko/pytest-83/root/_build/html
# status:
Running Sphinx v5.1.1
loading pickled environment... done
building [mo]: all of 0 po files
building [html]: all source files
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
preparing documents... done
writing output... [100%] setup_cfg_demo
generating indices... genindex done
writing additional pages... search done
copying static files... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded.

The HTML pages are in ../../../../../tmp/pytest-of-tkloczko/pytest-83/root/_build/html.

# warning:

___________________________________________________________ test_no_requirements_demo[no_requirements_demo.html] ___________________________________________________________

page = <!DOCTYPE html>
<html lang="en"><head>
    <meta charset="utf-8"/>
    <meta content="width=device-width, initial-scal...
        </div>
      </div>

      <div class="clearer"></div>
    </div>






</body></html>
html_regression = <sphinx_toolbox.testing.HTMLRegressionFixture object at 0x7f54ae8695b0>

    @pytest.mark.parametrize("page", ["no_requirements_demo.html"], indirect=True)
    def test_no_requirements_demo(
                page: BeautifulSoup,
                html_regression: HTMLRegressionFixture,
                ) -> None:
        # Make sure the page title is what you expect
        title = page.find("h1").contents[0].strip()
        assert "No Requirements Demo" == title

        # Now test the directive
        for div in page.findAll("div"):
                assert not div.get("id", '').startswith("extras_require")

>       html_regression.check(page, jinja2=True)
E    AssertionError: FILES DIFFER:
E    /tmp/pytest-of-tkloczko/pytest-83/test_no_requirements_demo_no_r0/test_directive_/test_no_requirements_demo_no_requirements_demo_html_.html
E    /tmp/pytest-of-tkloczko/pytest-83/test_no_requirements_demo_no_r0/test_directive_/test_no_requirements_demo_no_requirements_demo_html_.obtained.html
E    HTML DIFF: /tmp/pytest-of-tkloczko/pytest-83/test_no_requirements_demo_no_r0/test_directive_/test_no_requirements_demo_no_requirements_demo_html_.obtained.diff.html
E    ---
E    +++
E    @@ -1,9 +1,9 @@
E     <!DOCTYPE html>
E    -<html>
E    +<html lang="en">
E      <head>
E       <meta charset="utf-8"/>
E       <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
E    -  <meta content="Docutils 0.17.1: http://docutils.sourceforge.net/" name="generator"/>
E    +  <meta content="Docutils 0.18.1: http://docutils.sourceforge.net/" name="generator"/>
E       <title>
E        No Requirements Demo — Python  documentation
E       </title>
E    @@ -12,6 +12,8 @@
E       <script src="_static/jquery.js">
E       </script>
E       <script src="_static/underscore.js">
E    +  </script>
E    +  <script src="_static/_sphinx_javascript_frameworks_compat.js">
E       </script>
E       <script src="_static/doctools.js">
E       </script>
E    @@ -25,7 +27,7 @@
E           <section id="no-requirements-demo">
E            <h1>
E             No Requirements Demo
E    -        <a class="headerlink" href="#no-requirements-demo" title="Permalink to this headline">
E    +        <a class="headerlink" href="#no-requirements-demo" title="Permalink to this heading">
E              ¶
E             </a>
E            </h1>

tests/test_directive.py:250: AssertionError
------------------------------------------------------------------------- Captured stdout teardown -------------------------------------------------------------------------
# testroot: root
# builder: html
# srcdir: /tmp/pytest-of-tkloczko/pytest-83/root
# outdir: /tmp/pytest-of-tkloczko/pytest-83/root/_build/html
# status:
Running Sphinx v5.1.1
loading pickled environment... done
building [mo]: all of 0 po files
building [html]: all source files
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
preparing documents... done
writing output... [100%] setup_cfg_demo
generating indices... genindex done
writing additional pages... search done
copying static files... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded.

The HTML pages are in ../../../../../tmp/pytest-of-tkloczko/pytest-83/root/_build/html.

# warning:

============================================================================= warnings summary =============================================================================
tests/test_directive.py::test
tests/test_from_setup_cfg.py::test_from_setup_cfg[extra_c = faker; pytest; tox-extra_c-expects0]
tests/test_from_setup_cfg.py::test_from_setup_cfg[extra_c =\n    faker\n    pytest\n    tox; python<=3.6\n-extra_c-expects1]
tests/test_from_setup_cfg.py::test_from_setup_cfg_errors[extra_c = faker; pytest; tox-extra-expects0]
tests/test_from_setup_cfg.py::test_from_setup_cfg_errors[extra_c =\n    faker\n    pytest\n    tox; python<=3.6\n-test-expects1]
tests/test_from_setup_cfg.py::test_from_setup_cfg_missing_section
  /home/tkloczko/rpmbuild/BUILD/extras_require-0.4.3/sphinxcontrib/extras_require/sources.py:235: SetuptoolsDeprecationWarning: As setuptools moves its configuration towards `pyproject.toml`,
  `setuptools.config.read_configuration` became deprecated.

  For the time being, you can use the `setuptools.config.setupcfg` module
  to access a backward compatible API, but this module is provisional
  and might be removed in the future.

    setup_cfg = read_configuration(setup_cfg_file)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================================================================== slowest 25 durations ===========================================================================
0.32s call     tests/test_directive.py::test
0.28s setup    tests/test_directive.py::test_output[setup_cfg_demo.html]
0.23s setup    tests/test_directive.py::test_output[scopes_demo.html]
0.23s setup    tests/test_directive.py::test_output[flit_demo.html]
0.23s setup    tests/test_directive.py::test_output[requirements_file_demo.html]
0.23s setup    tests/test_directive.py::test_output[manual_demo.html]
0.23s setup    tests/test_directive.py::test_output[pkginfo_demo.html]
0.22s setup    tests/test_directive.py::test_no_requirements_demo[no_requirements_demo.html]
0.16s setup    tests/test_directive.py::test
0.01s call     tests/test_from_setup_cfg.py::test_from_setup_cfg[extra_c = faker; pytest; tox-extra_c-expects0]
0.01s call     tests/test_from_setup_cfg.py::test_from_setup_cfg_missing_section
0.01s call     tests/test_from_setup_cfg.py::test_from_setup_cfg_errors[extra_c = faker; pytest; tox-extra-expects0]
0.01s call     tests/test_from_setup_cfg.py::test_from_setup_cfg[extra_c =\n    faker\n    pytest\n    tox; python<=3.6\n-extra_c-expects1]
0.01s call     tests/test_from_setup_cfg.py::test_from_setup_cfg_errors[extra_c =\n    faker\n    pytest\n    tox; python<=3.6\n-test-expects1]
0.01s call     tests/test_directive.py::test_output[scopes_demo.html]
0.01s call     tests/test_directive.py::test_output[flit_demo.html]
0.01s call     tests/test_directive.py::test_output[requirements_file_demo.html]
0.01s call     tests/test_directive.py::test_output[setup_cfg_demo.html]
0.01s call     tests/test_directive.py::test_output[pkginfo_demo.html]
0.01s call     tests/test_directive.py::test_output[manual_demo.html]
0.01s call     tests/test_directive.py::test_no_requirements_demo[no_requirements_demo.html]

(4 durations < 0.005s hidden.  Use -vv to show these durations.)
========================================================================= short test summary info ==========================================================================
FAILED tests/test_directive.py::test_output[flit_demo.html] - AssertionError: FILES DIFFER:
FAILED tests/test_directive.py::test_output[scopes_demo.html] - AssertionError: FILES DIFFER:
FAILED tests/test_directive.py::test_output[setup_cfg_demo.html] - AssertionError: FILES DIFFER:
FAILED tests/test_directive.py::test_output[requirements_file_demo.html] - AssertionError: FILES DIFFER:
FAILED tests/test_directive.py::test_output[pkginfo_demo.html] - AssertionError: FILES DIFFER:
FAILED tests/test_directive.py::test_output[manual_demo.html] - AssertionError: FILES DIFFER:
FAILED tests/test_directive.py::test_no_requirements_demo[no_requirements_demo.html] - AssertionError: FILES DIFFER:
================================================================ 7 failed, 101 passed, 6 warnings in 2.97s =================================================================

Here is list of modules installed in build env:

Details
Package                       Version
----------------------------- -----------------
alabaster                     0.7.12
apeye                         1.2.0
appdirs                       1.4.4
attrs                         22.1.0
autodocsumm                   0.2.9
Babel                         2.10.2
beautifulsoup4                4.10.0
build                         0.8.0
CacheControl                  0.12.11
charset-normalizer            2.1.0
click                         8.1.2
codespell                     2.1.0
coincidence                   0.6.2
consolekit                    1.4.1
cssutils                      2.5.1
default-values                0.5.1
deprecation                   2.1.0
deprecation-alias             0.3.1
dict2css                      0.3.0
dist-meta                     0.5.0
distro                        1.7.0
docutils                      0.18.1
dom_toml                      0.6.0
domdf-python-tools            3.2.2.post1
extras                        1.0.0
fixtures                      4.0.0
gpg                           1.17.1-unknown
handy-archives                0.1.2
html-section                  0.2.0.post1
html5lib                      1.1
idna                          3.3
imagesize                     1.4.1
importlib-metadata            4.12.0
iniconfig                     1.1.1
Jinja2                        3.1.1
libcomps                      0.1.18
lit                           14.0.6
lockfile                      0.12.2
MarkupSafe                    2.1.1
meson                         0.63.0
mistletoe                     0.8.2
msgpack                       1.0.4
natsort                       8.0.2
packaging                     21.3
pbr                           5.9.0
pep517                        0.12.0
pip                           22.2.1
platformdirs                  2.5.2
pluggy                        1.0.0
py                            1.11.0
pychoosealicense              2022.7.25
Pygments                      2.12.0
PyGObject                     3.42.2
pyparsing                     3.0.9
pypi-json                     0.2.1
pyproject-parser              0.5.0
pytest                        7.1.2
pytest-datadir                1.3.1
pytest-regressions            2.3.1
pytest-timeout                2.1.0
python-dateutil               2.8.2
python-frontmatter            1.0.0
pytz                          2022.1
PyYAML                        6.0
requests                      2.28.1
rpm                           4.17.0
ruamel.yaml                   0.17.21
ruamel.yaml.clib              0.2.6
seed-intersphinx-mapping      1.0.1
setuptools                    63.4.2
shippinglabel                 1.0.1
six                           1.16.0
snowballstemmer               2.2.0
soupsieve                     2.3.2.post1
Sphinx                        5.1.1
sphinx-autodoc-typehints      1.19.2
sphinx-copybutton             0.5.0
sphinx-debuginfo              0.2.2
sphinx-jinja2-compat          0.1.2
sphinx-licenseinfo            0.3.1
sphinx-notfound-page          0.8
sphinx-prompt                 1.4.0
sphinx-pyproject              0.1.0
sphinx-tabs                   3.4.1
sphinx-toolbox                3.1.2
sphinxcontrib-applehelp       1.0.2.dev20220730
sphinxcontrib-devhelp         1.0.2.dev20220730
sphinxcontrib-htmlhelp        2.0.0
sphinxcontrib-jsmath          1.0.1.dev20220730
sphinxcontrib-qthelp          1.0.3.dev20220730
sphinxcontrib-serializinghtml 1.1.5
sphinxemoji                   0.2.0
tabulate                      0.8.9
testtools                     2.5.0
toctree-plus                  0.6.0
toml                          0.10.2
tomli                         2.0.1
trove-classifiers             2022.8.8
typing_extensions             4.2.0
urllib3                       1.26.11
webencodings                  0.5.1
wheel                         0.37.1
whey                          0.0.23
zipp                          3.8.1

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingstale

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions