Skip to content

Build and pytest based test suite warnings #1142

@kloczek

Description

@kloczek
+ /usr/bin/python3 -Bm pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.9, pytest-6.2.3, py-1.10.0, pluggy-0.13.1
rootdir: /home/tkloczko/rpmbuild/BUILD/sphinx_rtd_theme-0.5.2
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, asyncio-0.14.0, expect-1.1.0, cov-2.11.1, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, pyfakefs-4.4.0, freezegun-0.4.2, cases-3.4.6, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, flaky-3.7.0, mock-3.6.0, hypothesis-6.12.0
collected 3 items

tests/test_builders.py ...                                                                                                                                           [100%]

============================================================================= warnings summary =============================================================================
../../../../../usr/lib/python3.8/site-packages/sphinx/util/rst.py:56
  /usr/lib/python3.8/site-packages/sphinx/util/rst.py:56: DeprecationWarning: 'environmentfilter' is renamed to 'pass_environment', the old name will be removed in Jinja 3.1.
    def heading(env: Environment, text: str, level: int = 1) -> str:

../../../../../usr/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:170
  /usr/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:170: RemovedInSphinx40Warning: The alias 'sphinx.builders.html.SingleFileHTMLBuilder' is deprecated, use 'sphinx.builders.singlehtml.SingleFileHTMLBuilder' instead. Check CHANGES for Sphinx API modifications.
    exec(co, module.__dict__)

tests/test_builders.py:6
  /home/tkloczko/rpmbuild/BUILD/sphinx_rtd_theme-0.5.2/tests/test_builders.py:6: RemovedInSphinx40Warning: The alias 'sphinx.builders.html.DirectoryHTMLBuilder' is deprecated, use 'sphinx.builders.dirhtml.DirectoryHTMLBuilder' instead. Check CHANGES for Sphinx API modifications.
    from sphinx.builders.html import SingleFileHTMLBuilder, DirectoryHTMLBuilder

tests/test_builders.py::test_basic
  /usr/lib/python3.8/site-packages/sphinx/jinja2glue.py:106: DeprecationWarning: 'contextfunction' is renamed to 'pass_context', the old name will be removed in Jinja 3.1.
    def warning(context: Dict, message: str, *args: Any, **kwargs: Any) -> str:

tests/test_builders.py: 18 warnings
  /usr/lib/python3.8/site-packages/sphinx/jinja2glue.py:184: DeprecationWarning: 'contextfunction' is renamed to 'pass_context', the old name will be removed in Jinja 3.1.
    self.environment.globals['debug'] = contextfunction(pformat)

tests/test_builders.py: 18 warnings
  /usr/lib/python3.8/site-packages/sphinx/jinja2glue.py:186: DeprecationWarning: 'contextfunction' is renamed to 'pass_context', the old name will be removed in Jinja 3.1.
    self.environment.globals['accesskey'] = contextfunction(accesskey)

-- Docs: https://docs.pytest.org/en/stable/warnings.html
====================================================================== 3 passed, 40 warnings in 3.86s ======================================================================

Also build emmits some warnings as well

+ /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s'
running build
running build_py

> [email protected] preinstall /home/tkloczko/rpmbuild/BUILD/sphinx_rtd_theme-0.5.2
> bin/preinstall.js


> [email protected] install /home/tkloczko/rpmbuild/BUILD/sphinx_rtd_theme-0.5.2/node_modules/node-sass
> node scripts/install.js

Cached binary found at /home/tkloczko/.npm/node-sass/4.14.1/linux-x64-83_binding.node

> [email protected] postinstall /home/tkloczko/rpmbuild/BUILD/sphinx_rtd_theme-0.5.2/node_modules/node-sass
> node scripts/build.js

Binary found at /home/tkloczko/rpmbuild/BUILD/sphinx_rtd_theme-0.5.2/node_modules/node-sass/vendor/linux-x64-83/binding.node
Testing binary
Binary is fine
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 896 packages from 501 contributors and audited 967 packages in 12.877s

26 packages are looking for funding
  run `npm fund` for details

found 402 vulnerabilities (381 low, 6 moderate, 15 high)
  run `npm audit fix` to fix them, or `npm audit` for details
WARNING: [Bourbon] [Deprecation] `box-sizing` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 422 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecated-upcoming.scss, in mixin `box-sizing`
         from line 16 of node_modules/wyrm/sass/wyrm_core/_reset.sass
         from line 25 of stdin

WARNING: [Bourbon] [Deprecation] `transition` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 7 of node_modules/bourbon/app/assets/stylesheets/css3/_transition.scss, in mixin `transition`
         from line 31 of node_modules/wyrm/sass/wyrm_core/_font_icon_defaults.sass
         from line 32 of stdin

WARNING: [Bourbon] [Deprecation] `transition` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 7 of node_modules/bourbon/app/assets/stylesheets/css3/_transition.scss, in mixin `transition`
         from line 102 of node_modules/wyrm/sass/wyrm_core/_alert.sass
         from line 35 of stdin

WARNING: [Bourbon] [Deprecation] `user-select` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 2 of node_modules/bourbon/app/assets/stylesheets/css3/_user-select.scss, in mixin `user-select`
         from line 67 of node_modules/wyrm/sass/wyrm_core/_button.sass
         from line 36 of stdin

WARNING: [Bourbon] [Deprecation] `transition` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 7 of node_modules/bourbon/app/assets/stylesheets/css3/_transition.scss, in mixin `transition`
         from line 69 of node_modules/wyrm/sass/wyrm_core/_button.sass
         from line 36 of stdin

WARNING: [Bourbon] [Deprecation] `transition` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 7 of node_modules/bourbon/app/assets/stylesheets/css3/_transition.scss, in mixin `transition`
         from line 227 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `box-sizing` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 422 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecated-upcoming.scss, in mixin `box-sizing`
         from line 234 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `box-sizing` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 422 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecated-upcoming.scss, in mixin `box-sizing`
         from line 240 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transition` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 7 of node_modules/bourbon/app/assets/stylesheets/css3/_transition.scss, in mixin `transition`
         from line 283 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transition` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 7 of node_modules/bourbon/app/assets/stylesheets/css3/_transition.scss, in mixin `transition`
         from line 383 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transition` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 7 of node_modules/bourbon/app/assets/stylesheets/css3/_transition.scss, in mixin `transition`
         from line 394 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transform` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 2 of node_modules/bourbon/app/assets/stylesheets/css3/_transform.scss, in mixin `transform`
         from line 493 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transform` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 2 of node_modules/bourbon/app/assets/stylesheets/css3/_transform.scss, in mixin `transform`
         from line 495 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transform` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 2 of node_modules/bourbon/app/assets/stylesheets/css3/_transform.scss, in mixin `transform`
         from line 497 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transform` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 2 of node_modules/bourbon/app/assets/stylesheets/css3/_transform.scss, in mixin `transform`
         from line 499 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transform` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 2 of node_modules/bourbon/app/assets/stylesheets/css3/_transform.scss, in mixin `transform`
         from line 501 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transform` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 2 of node_modules/bourbon/app/assets/stylesheets/css3/_transform.scss, in mixin `transform`
         from line 503 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transform` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 2 of node_modules/bourbon/app/assets/stylesheets/css3/_transform.scss, in mixin `transform`
         from line 505 of node_modules/wyrm/sass/wyrm_core/_form.sass
         from line 38 of stdin

WARNING: [Bourbon] [Deprecation] `transition` is deprecated and will be removed in 5.0.0. We suggest using an automated prefixing tool, like Autoprefixer.
         on line 10 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate`
         from line 17 of node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss, in mixin `-bourbon-deprecate-for-prefixing`
         from line 7 of node_modules/bourbon/app/assets/stylesheets/css3/_transition.scss, in mixin `transition`
         from line 248 of src/sass/_theme_layout.sass
         from line 45 of stdin

Browserslist: caniuse-lite is outdated. Please run the following command: `npm update`
Hash: 2e769a286cbbca41dd0a
Version: webpack 4.41.5
Time: 3100ms
Built at: 05/06/2021 2:37:54 PM
                                                               Asset       Size  Chunks                                Chunk Names
                             css/badge_only.css?2e769a286cbbca41dd0a    3.2 KiB       0  [emitted] [immutable]         badge_only
   css/fonts/Roboto-Slab-Bold.woff2?9984f4a9bda09be08e83f2506954adbe   65.7 KiB          [emitted]
    css/fonts/Roboto-Slab-Bold.woff?bed5564a116b05148e3b3bea6fb1162a   85.6 KiB          [emitted]
css/fonts/Roboto-Slab-Regular.woff2?7abf5b8d04d26a2cafea937019bca958   64.9 KiB          [emitted]
 css/fonts/Roboto-Slab-Regular.woff?c1be9284088d487c5e3ff0a10a92e58c   84.3 KiB          [emitted]
  css/fonts/fontawesome-webfont.eot?674f50d287a8c48dc19ba404d20fe713    162 KiB          [emitted]
  css/fonts/fontawesome-webfont.svg?912ec66d7572ff821749319396470bde    434 KiB          [emitted]              [big]
  css/fonts/fontawesome-webfont.ttf?b06871f281fee6b241d60582ae9369b9    162 KiB          [emitted]
css/fonts/fontawesome-webfont.woff2?af7ae505a9eed503f8b8e6982036873e   75.4 KiB          [emitted]
 css/fonts/fontawesome-webfont.woff?fee66e712a8a08eef5805a46892932ad   95.7 KiB          [emitted]
   css/fonts/lato-bold-italic.woff2?0b6bb6725576b072c5d0b02ecdd1900d    189 KiB          [emitted]
    css/fonts/lato-bold-italic.woff?9c7e4e9eb485b4a121c760e61bc3707c    316 KiB          [emitted]              [big]
          css/fonts/lato-bold.woff2?cccb897485813c7c256901dbca54ecf2    181 KiB          [emitted]
           css/fonts/lato-bold.woff?d878b6c29b10beca227e9eef4246111b    302 KiB          [emitted]              [big]
 css/fonts/lato-normal-italic.woff2?4eb103b4d12be57cb1d040ed5e162e9d    191 KiB          [emitted]
  css/fonts/lato-normal-italic.woff?f28f2d6482446544ef1ea1ccc6dd5892    321 KiB          [emitted]              [big]
        css/fonts/lato-normal.woff2?bd03a2cc277bbbc338d464e679fe9942    178 KiB          [emitted]
         css/fonts/lato-normal.woff?27bd77b9162d388cb8d4c4217c7c5e2a    302 KiB          [emitted]              [big]
                                  css/theme.css?2e769a286cbbca41dd0a    121 KiB       1  [emitted] [immutable]         theme
                               js/badge_only.js?2e769a286cbbca41dd0a  934 bytes       0  [emitted] [immutable]         badge_only
                                       js/html5shiv-printshiv.min.js   4.27 KiB          [emitted]
                                                 js/html5shiv.min.js   2.67 KiB          [emitted]
                                    js/theme.js?2e769a286cbbca41dd0a    4.8 KiB       1  [emitted] [immutable]         theme
Entrypoint theme = css/theme.css?2e769a286cbbca41dd0a js/theme.js?2e769a286cbbca41dd0a
Entrypoint badge_only = css/badge_only.css?2e769a286cbbca41dd0a js/badge_only.js?2e769a286cbbca41dd0a
[0] multi ./src/theme.js ./src/sass/theme.sass 40 bytes {1} [built]
[1] ./src/theme.js 8.74 KiB {1} [built]
[2] external "jQuery" 42 bytes {1} [built]
[3] ./src/sass/theme.sass 39 bytes {1} [built]
[4] ./src/sass/badge_only.sass 39 bytes {0} [built]
    + 2 hidden modules

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
  css/fonts/fontawesome-webfont.svg?912ec66d7572ff821749319396470bde (434 KiB)
  css/fonts/lato-normal.woff?27bd77b9162d388cb8d4c4217c7c5e2a (302 KiB)
  css/fonts/lato-bold.woff?d878b6c29b10beca227e9eef4246111b (302 KiB)
  css/fonts/lato-bold-italic.woff?9c7e4e9eb485b4a121c760e61bc3707c (316 KiB)
  css/fonts/lato-normal-italic.woff?f28f2d6482446544ef1ea1ccc6dd5892 (321 KiB)

WARNING in webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/
Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js!node_modules/sass-loader/dist/cjs.js??ref--5-2!src/sass/badge_only.sass:
    Entrypoint mini-css-extract-plugin = *
    [0] ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ref--5-2!./src/sass/badge_only.sass 4.69 KiB {0} [built]
        + 7 hidden modules
Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js!node_modules/sass-loader/dist/cjs.js??ref--5-2!src/sass/theme.sass:
    Entrypoint mini-css-extract-plugin = *
    [0] ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ref--5-2!./src/sass/theme.sass 130 KiB {0} [built]
        + 20 hidden modules

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions