Skip to content

[TODO] Address suppressed warnings in pytest #768

Description

@webknjaz

As for helping out, it'd be nice to have help getting rid of warning suppressions @

cheroot/pytest.ini

Lines 51 to 63 in e87d303

# FIXME: drop once certifi fixes their use of `importlib.resources`
# Ref: https://github.com/certifi/python-certifi/issues/183
ignore:path is deprecated. Use files.. instead. Refer to https.//importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.:DeprecationWarning:certifi.core
# FIXME: Try to figure out what causes this and ensure that the socket
# FIXME: gets closed.
ignore:unclosed <socket.socket fd=:ResourceWarning
ignore:unclosed <ssl.SSLSocket fd=:ResourceWarning
# FIXME: Python 3.13 no longer ignores IOBase errors raised by the close(),
# FIXME: which exposed a possible race condition in test_conn test cleanup.
# Ref: https://github.com/cherrypy/cheroot/issues/734
ignore:Exception ignored in. <function IOBase.__del__:pytest.PytestUnraisableExceptionWarning
/
'ignore:Exception in thread CP Server Thread-:'
'pytest.PytestUnhandledThreadExceptionWarning:_pytest.threadexception',
'ignore:Exception in thread Thread-:'
'pytest.PytestUnhandledThreadExceptionWarning:_pytest.threadexception',
'ignore:Exception ignored in. '
'<socket.socket fd=-1, family=AddressFamily.AF_INET, '
'type=SocketKind.SOCK_STREAM, proto=.:'
'pytest.PytestUnraisableExceptionWarning:_pytest.unraisableexception',
'ignore:Exception ignored in. '
'<socket.socket fd=-1, family=AddressFamily.AF_INET6, '
'type=SocketKind.SOCK_STREAM, proto=.:'
'pytest.PytestUnraisableExceptionWarning:_pytest.unraisableexception',
'ignore:Exception ignored in. '
'<socket.socket fd=-1, family=AF_INET, '
'type=SocketKind.SOCK_STREAM, proto=.:'
'pytest.PytestUnraisableExceptionWarning:_pytest.unraisableexception',
'ignore:Exception ignored in. '
'<socket.socket fd=-1, family=AF_INET6, '
'type=SocketKind.SOCK_STREAM, proto=.:'
'pytest.PytestUnraisableExceptionWarning:_pytest.unraisableexception',
. While the CI doesn't crash with those in place, they may turn into errors in newer CPython runtimes.

Originally posted by @webknjaz in #754

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImprovementgood first issueThis is what we believe is newcomer-friendly, feel free to contribute!hacktoberfest-acceptedDO's annual PR encouragementhelp wantedSomebody help us, please!

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions