Skip to content

1.1.0: pytest warnings #324

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kloczek opened this issue May 2, 2021 · 7 comments · Fixed by #352
Closed

1.1.0: pytest warnings #324

kloczek opened this issue May 2, 2021 · 7 comments · Fixed by #352
Milestone

Comments

@kloczek
Copy link

kloczek commented May 2, 2021

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-numpydoc-1.1.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-numpydoc-1.1.0-4.fc35.x86_64/usr/lib/python3.8/site-packages
+ /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/numpydoc-1.1.0, configfile: setup.cfg
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, mock-3.5.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, flaky-3.7.0, cases-3.4.6, hypothesis-6.10.1, case-1.5.3, isort-1.3.0
collected 181 items

numpydoc/numpydoc.py .                                                                                                                                               [  0%]
numpydoc/validate.py .                                                                                                                                               [  1%]
numpydoc/tests/test_docscrape.py .............................................                                                                                       [ 25%]
numpydoc/tests/test_full.py .....                                                                                                                                    [ 28%]
numpydoc/tests/test_main.py .......                                                                                                                                  [ 32%]
numpydoc/tests/test_numpydoc.py ..                                                                                                                                   [ 33%]
numpydoc/tests/test_validate.py .........................................................................x..x............                                            [ 82%]
numpydoc/tests/test_xref.py ...............................                                                                                                          [100%]

============================================================================= warnings summary =============================================================================
numpydoc/tests/test_full.py::test_MyClass
numpydoc/tests/test_full.py::test_MyClass
numpydoc/tests/test_full.py::test_MyClass
numpydoc/tests/test_full.py::test_MyClass
numpydoc/tests/test_full.py::test_MyClass
numpydoc/tests/test_full.py::test_MyClass
  /usr/lib/python3.8/site-packages/alabaster/layout.html:114: DeprecationWarning: 'soft_unicode' has been renamed to 'soft_str'. The old name will be removed in version 2.1.
    _gaq.push(['_setAllowLinker', true]);

numpydoc/tests/test_full.py::test_MyClass
numpydoc/tests/test_full.py::test_MyClass
numpydoc/tests/test_full.py::test_MyClass
numpydoc/tests/test_full.py::test_MyClass
numpydoc/tests/test_full.py::test_MyClass
numpydoc/tests/test_full.py::test_MyClass
  /usr/lib/python3.8/site-packages/alabaster/about.html:70: DeprecationWarning: 'soft_unicode' has been renamed to 'soft_str'. The old name will be removed in version 2.1.

numpydoc/tests/test_full.py::test_MyClass
numpydoc/tests/test_full.py::test_MyClass
numpydoc/tests/test_full.py::test_MyClass
numpydoc/tests/test_full.py::test_MyClass
numpydoc/tests/test_full.py::test_MyClass
numpydoc/tests/test_full.py::test_MyClass
  /usr/lib/python3.8/site-packages/alabaster/about.html:99: DeprecationWarning: 'soft_unicode' has been renamed to 'soft_str'. The old name will be removed in version 2.1.

numpydoc/tests/test_full.py::test_MyClass
numpydoc/tests/test_full.py::test_MyClass
numpydoc/tests/test_full.py::test_MyClass
numpydoc/tests/test_full.py::test_MyClass
numpydoc/tests/test_full.py::test_MyClass
numpydoc/tests/test_full.py::test_MyClass
  /usr/lib/python3.8/site-packages/alabaster/layout.html:215: DeprecationWarning: 'soft_unicode' has been renamed to 'soft_str'. The old name will be removed in version 2.1.

numpydoc/tests/test_full.py::test_MyClass
numpydoc/tests/test_full.py::test_MyClass
numpydoc/tests/test_full.py::test_MyClass
numpydoc/tests/test_full.py::test_MyClass
numpydoc/tests/test_full.py::test_MyClass
numpydoc/tests/test_full.py::test_MyClass
  /usr/lib/python3.8/site-packages/alabaster/layout.html:238: DeprecationWarning: 'soft_unicode' has been renamed to 'soft_str'. The old name will be removed in version 2.1.

numpydoc/tests/test_full.py::test_MyClass
  <template>:33: DeprecationWarning: 'soft_unicode' has been renamed to 'soft_str'. The old name will be removed in version 2.1.

numpydoc/tests/test_full.py::test_MyClass
  <template>:224: DeprecationWarning: 'soft_unicode' has been renamed to 'soft_str'. The old name will be removed in version 2.1.

numpydoc/tests/test_full.py::test_MyClass
  <template>:386: DeprecationWarning: 'soft_unicode' has been renamed to 'soft_str'. The old name will be removed in version 2.1.

numpydoc/tests/test_full.py::test_MyClass
  <template>:401: DeprecationWarning: 'soft_unicode' has been renamed to 'soft_str'. The old name will be removed in version 2.1.

-- Docs: https://docs.pytest.org/en/stable/warnings.html
-------------------------------------------- generated xml file: /home/tkloczko/rpmbuild/BUILD/numpydoc-1.1.0/junit-results.xml --------------------------------------------


========================================================================= short test summary info ==========================================================================
XFAIL numpydoc/tests/test_validate.py::TestValidator::test_bad_docstrings[BadParameters-blank_lines-msgs30]
XFAIL numpydoc/tests/test_validate.py::TestValidator::test_bad_docstrings[BadReturns-no_type-msgs33]
=============================================================== 179 passed, 2 xfailed, 34 warnings in 2.83s ================================================================
@rossbar
Copy link
Contributor

rossbar commented May 2, 2021

Nice catch, thanks - from the traceback, those DeprecationWarnings originate from the alabaster theme, which is the default in the tinybuild configuration for the numpydoc test suite. I don't see these warnings locally with alabaster v0.7.12 - what version do you have installed?

@kloczek
Copy link
Author

kloczek commented May 2, 2021

Exactly the same version :/

$ pip show alabaster
Name: alabaster
Version: 0.7.12
Summary: A configurable sidebar-enabled Sphinx theme
Home-page: https://alabaster.readthedocs.io
Author: Jeff Forcier
Author-email: [email protected]
License: UNKNOWN
Location: /usr/lib/python3.8/site-packages
Requires:
Required-by: Sphinx

@rossbar
Copy link
Contributor

rossbar commented May 3, 2021

Upon closer inspection, the warning actually originates from jinja (see e.g. pallets/jinja#1276). The warning indicates that the deprecation expires in v2.1, which is already very old.

@kloczek
Copy link
Author

kloczek commented May 4, 2021

OK will try to upgrade jinja and back with results.

Thx 😋

@kloczek
Copy link
Author

kloczek commented Jan 2, 2022

Just back to that issie.
With jinja 3.0.3 I'm no longer able to reproduce that issue.
However I see that pythos sjows now some deprecation warnings.

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-numpydoc-1.1.0-6.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-numpydoc-1.1.0-6.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.12, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/numpydoc-1.1.0, configfile: setup.cfg
plugins: requests-mock-1.9.3, easy-server-0.8.0, yagot-0.5.0, cov-3.0.0
collected 181 items

numpydoc/numpydoc.py .                                                                                                                                               [  0%]
numpydoc/validate.py .                                                                                                                                               [  1%]
numpydoc/tests/test_docscrape.py .............................................                                                                                       [ 25%]
numpydoc/tests/test_full.py .....                                                                                                                                    [ 28%]
numpydoc/tests/test_main.py .......                                                                                                                                  [ 32%]
numpydoc/tests/test_numpydoc.py ..                                                                                                                                   [ 33%]
numpydoc/tests/test_validate.py .........................................................................x..x............                                            [ 82%]
numpydoc/tests/test_xref.py ...............................                                                                                                          [100%]

============================================================================= warnings summary =============================================================================
numpydoc/tests/test_full.py::test_MyClass
numpydoc/tests/test_full.py::test_MyClass
  /home/tkloczko/rpmbuild/BUILD/numpydoc-1.1.0/numpydoc/tests/test_full.py:30: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    if LooseVersion(sphinx.__version__) >= LooseVersion('1.8'):

-- Docs: https://docs.pytest.org/en/stable/warnings.html
-------------------------------------------- generated xml file: /home/tkloczko/rpmbuild/BUILD/numpydoc-1.1.0/junit-results.xml --------------------------------------------


========================================================================= short test summary info ==========================================================================
XFAIL numpydoc/tests/test_validate.py::TestValidator::test_bad_docstrings[BadParameters-blank_lines-msgs30]
XFAIL numpydoc/tests/test_validate.py::TestValidator::test_bad_docstrings[BadReturns-no_type-msgs33]
================================================================ 179 passed, 2 xfailed, 2 warnings in 3.74s ================================================================

@kloczek
Copy link
Author

kloczek commented Jan 10, 2022

Cannot test that because that commit does not apply cleanly on top of last release.
Will do that when will be new release.
Do you have any plans to make such release soon? :)

Thank you.

@jarrodmillman
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants