pasteorg / paste

Python Paste (core) repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

3.5.0: pytest warnings

kloczek opened this issue · comments

+ /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/Paste-3.5.0, configfile: setup.cfg, testpaths: tests
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 151 items

tests/test_cgiapp.py ....                                                                                                                                            [  2%]
tests/test_cgitb_catcher.py ....                                                                                                                                     [  5%]
tests/test_config.py ....                                                                                                                                            [  7%]
tests/test_doctests.py ..........                                                                                                                                    [ 14%]
tests/test_errordocument.py .....                                                                                                                                    [ 17%]
tests/test_fileapp.py ..........                                                                                                                                     [ 24%]
tests/test_fixture.py .....                                                                                                                                          [ 27%]
tests/test_grantip.py ..                                                                                                                                             [ 29%]
tests/test_gzipper.py ..                                                                                                                                             [ 30%]
tests/test_httpheaders.py ..........                                                                                                                                 [ 37%]
tests/test_httpserver.py .......                                                                                                                                     [ 41%]
tests/test_import_string.py ..                                                                                                                                       [ 43%]
tests/test_multidict.py ..                                                                                                                                           [ 44%]
tests/test_proxy.py .                                                                                                                                                [ 45%]
tests/test_recursive.py ....                                                                                                                                         [ 47%]
tests/test_registry.py .............                                                                                                                                 [ 56%]
tests/test_request.py ....                                                                                                                                           [ 58%]
tests/test_request_form.py ..                                                                                                                                        [ 60%]
tests/test_response.py .                                                                                                                                             [ 60%]
tests/test_session.py ..                                                                                                                                             [ 62%]
tests/test_urlmap.py ..                                                                                                                                              [ 63%]
tests/test_urlparser.py .........                                                                                                                                    [ 69%]
tests/test_wsgilib.py ..                                                                                                                                             [ 70%]
tests/test_wsgiwrappers.py ....                                                                                                                                      [ 73%]
tests/test_auth/test_auth_cookie.py ...                                                                                                                              [ 75%]
tests/test_auth/test_auth_digest.py .                                                                                                                                [ 76%]
tests/test_auth/test_auth_tkt.py ..                                                                                                                                  [ 77%]
tests/test_exceptions/test_error_middleware.py .....                                                                                                                 [ 80%]
tests/test_exceptions/test_formatter.py ........                                                                                                                     [ 86%]
tests/test_exceptions/test_httpexceptions.py ......                                                                                                                  [ 90%]
tests/test_exceptions/test_reporter.py .                                                                                                                             [ 90%]
tests/test_util/test_datetimeutil.py ...                                                                                                                             [ 92%]
tests/test_util/test_mimeparse.py .........                                                                                                                          [ 98%]
tests/test_util/test_quoting.py ..                                                                                                                                   [100%]

============================================================================= warnings summary =============================================================================
tests/test_cgitb_catcher.py: 1 warning
tests/test_errordocument.py: 1 warning
tests/test_fileapp.py: 1 warning
tests/test_grantip.py: 1 warning
tests/test_recursive.py: 1 warning
tests/test_registry.py: 1 warning
tests/test_request.py: 1 warning
tests/test_urlmap.py: 1 warning
tests/test_urlparser.py: 1 warning
tests/test_exceptions/test_error_middleware.py: 1 warning
  /usr/lib/python3.8/site-packages/_pytest/python.py:739: DeprecationWarning: setup_module is deprecated
    func(arg)

tests/test_recursive.py::test_ForwardRequestException
  /home/tkloczko/rpmbuild/BUILD/Paste-3.5.0/tests/test_recursive.py:104: DeprecationWarning: ForwardRequestException(path_info=...) has been deprecated; please use ForwardRequestException(url=...)
    raise ForwardRequestException(path_info=self.url)

-- Docs: https://docs.pytest.org/en/stable/warnings.html
===================================================================== 151 passed, 11 warnings in 2.06s =====================================================================

If you provide a pull request to fix these, I'll happily merge it, but since it is only warnings and we're in maintenance mode (see the README) it's not something I'll be fixing myself.

I do not see these warnings with recent Paste so it looks like they were already fixed in the meantime.

Yeah, some other warnings remain, but they are ones we want to keep visible (I think).

OK .. so which one version of setuptools you are using? 🤔

so which one version of setuptools you are using?

Things have changed a lot in the codebase since 2021