Skip to content

1.2.1: pytest warnings  #377

@kloczek

Description

@kloczek

Looks like latest pytest shows some warnings

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-numpydoc-1.2.1-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-numpydoc-1.2.1-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.1, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/numpydoc-1.2.1, configfile: setup.cfg
plugins: anyio-3.5.0, cov-3.0.0
collected 239 items

numpydoc/numpydoc.py .                                                                                                                                               [  0%]
numpydoc/validate.py .                                                                                                                                               [  0%]
numpydoc/tests/test_docscrape.py ...........................................................                                                                         [ 25%]
numpydoc/tests/test_full.py .....                                                                                                                                    [ 27%]
numpydoc/tests/test_main.py .......                                                                                                                                  [ 30%]
numpydoc/tests/test_numpydoc.py ........                                                                                                                             [ 33%]
numpydoc/tests/test_validate.py ...............................................................................x..x............                                      [ 73%]
numpydoc/tests/test_xref.py ...............................................................                                                                          [100%]

============================================================================= warnings summary =============================================================================
../../../../../usr/lib64/python3.8/site-packages/coverage/inorout.py:472
  /usr/lib64/python3.8/site-packages/coverage/inorout.py:472: CoverageWarning: --include is ignored because --source is set (include-ignored)
    self.warn("--include is ignored because --source is set", slug="include-ignored")

numpydoc/tests/test_numpydoc.py:194
  /home/tkloczko/rpmbuild/BUILD/numpydoc-1.2.1/numpydoc/tests/test_numpydoc.py:194: DeprecationWarning: invalid escape sequence \[
    with pytest.raises(ValueError, match="\['shouldnt-be-a-str'\]"):

numpydoc/tests/test_validate.py: 42 warnings
  /usr/lib/python3.8/site-packages/_pytest/python.py:192: PytestRemovedIn8Warning: Passing None has been deprecated.
  See https://docs.pytest.org/en/latest/how-to/capture-warnings.html#additional-use-cases-of-warnings-in-tests for alternatives in common use cases.
    result = testfunction(**testargs)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
-------------------------------------------- generated xml file: /home/tkloczko/rpmbuild/BUILD/numpydoc-1.2.1/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]
=============================================================== 237 passed, 2 xfailed, 44 warnings in 3.04s ================================================================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions