python-httpcore/httpcore-allow-deprecationwarnings-test.patch
Matej Cepl dbe5286cde Accepting request 1045069 from home:bnavigator:branches:devel:languages:python
- Update to 0.16.3
  * Allow ws and wss schemes. Allows us to properly support
    websocket upgrade connections. (#625)
  * Forwarding HTTP proxies use a connection-per-remote-host.
    Required by some proxy implementations. (#637)
  * Don't raise RuntimeError when closing a connection pool with
    active connections. Removes some error cases when cancellations
    are used. (#631)
  * Lazy import anyio, so that it's no longer a hard dependancy,
    and isn't imported if unused. (#639)
- Add httpcore-allow-deprecationwarnings-test.patch
  gh#encode/httpcore#511, gh#agronholm/anyio#470

OBS-URL: https://build.opensuse.org/request/show/1045069
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpcore?expand=0&rev=18
2022-12-24 00:51:24 +00:00

18 lines
891 B
Diff

Index: httpcore-0.16.3/setup.cfg
===================================================================
--- httpcore-0.16.3.orig/setup.cfg
+++ httpcore-0.16.3/setup.cfg
@@ -30,6 +30,12 @@ markers =
copied_from(source, changes=None): mark test as copied from somewhere else, along with a description of changes made to accodomate e.g. our test setup
filterwarnings =
error
+ # requires anyio 4 with trio 0.22: https://github.com/agronholm/anyio/issues/470
+ ignore:trio.MultiError is deprecated
+ # fixed by pytest-httpbin (2.0 not released yet): https://github.com/encode/httpcore/pull/511
+ ignore:unclosed <(socket\.socket|ssl\.SSLSocket) .*:ResourceWarning
+ ignore:ssl\.wrap_socket\(\) is deprecated, use SSLContext\.wrap_socket\(\):DeprecationWarning
+ ignore:ssl\.PROTOCOL_TLS is deprecated:DeprecationWarning
[coverage:run]
omit = venv/*, httpcore/_sync/*