-
-
Notifications
You must be signed in to change notification settings - Fork 167
1.2.1: pytest warnings #377
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
Comments
Sill it is yet another warning + 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: 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 =============================================================================
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'\]"):
-- 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, 1 warning in 2.97s ================================================================= |
@kloczek would you be up for making a PR to fix this warning? |
Sorry .. I have still very long queue other modeles to package. |
This warning has already been fixed on main, likely by #371 though I didn't bother to verify. |
Tested 1.3.0 and all looks clean. + /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/numpydoc-1.3.0, configfile: setup.cfg
plugins: 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%]
-------------------------------------------- generated xml file: /home/tkloczko/rpmbuild/BUILD/numpydoc-1.3.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]
====================================================================== 237 passed, 2 xfailed in 2.83s ====================================================================== |
Looks like latest pytest shows some warnings
The text was updated successfully, but these errors were encountered: