File tree Expand file tree Collapse file tree 3 files changed +3
-16
lines changed Expand file tree Collapse file tree 3 files changed +3
-16
lines changed Original file line number Diff line number Diff line change 1- requests==2.26 .0
2- urllib3==1.26.2
1+ requests==2.30 .0
2+ urllib3==2.0.3
33aiohttp==3.8.0
44httpx==0.27.0
Original file line number Diff line number Diff line change 5050 package_data = {"elastic_transport" : ["py.typed" ]},
5151 packages = packages ,
5252 install_requires = [
53- "urllib3>=1.26. 2, <3" ,
53+ "urllib3>=2, <3" ,
5454 "certifi" ,
5555 "sniffio" ,
5656 ],
Original file line number Diff line number Diff line change 1818import warnings
1919
2020import pytest
21- import requests
22- import urllib3
2321
2422from elastic_transport import Transport
2523
2624
2725@pytest .mark .parametrize ("node_class" , ["urllib3" , "requests" ])
2826def test_simple_request (node_class , https_server_ip_node_config ):
29- # when testing minimum urllib3 and requests dependencies, we disable
30- # the deprecation warning for ssl.match_hostname()
31- silence_ssl_deprecation = (
32- node_class == "urllib3" and urllib3 .__version__ == "1.26.2"
33- ) or (node_class == "requests" and requests .__version__ == "2.26.0" )
34-
3527 with warnings .catch_warnings ():
3628 warnings .simplefilter ("error" )
37- if silence_ssl_deprecation :
38- warnings .filterwarnings (
39- "ignore" , ".*match_hostname.*deprecated" , DeprecationWarning
40- )
41-
4229 t = Transport ([https_server_ip_node_config ], node_class = node_class )
4330
4431 resp , data = t .perform_request ("GET" , "/foobar" )
You can’t perform that action at this time.
0 commit comments