File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
tests/integrations/stdlib Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 66 from urllib import urlopen
77
88try :
9- from httplib import HTTPConnection
9+ from httplib import HTTPSConnection
1010except ImportError :
11- from http .client import HTTPConnection
11+ from http .client import HTTPSConnection
1212
1313from sentry_sdk import capture_message
1414from sentry_sdk .integrations .stdlib import StdlibIntegration
@@ -77,7 +77,7 @@ def test_httplib_misuse(sentry_init, capture_events):
7777 sentry_init ()
7878 events = capture_events ()
7979
80- conn = HTTPConnection ("httpbin.org" , 80 )
80+ conn = HTTPSConnection ("httpbin.org" , 443 )
8181 conn .request ("GET" , "/anything/foo" )
8282
8383 with pytest .raises (Exception ):
@@ -98,7 +98,7 @@ def test_httplib_misuse(sentry_init, capture_events):
9898 assert crumb ["type" ] == "http"
9999 assert crumb ["category" ] == "httplib"
100100 assert crumb ["data" ] == {
101- "url" : "http ://httpbin.org/anything/foo" ,
101+ "url" : "https ://httpbin.org/anything/foo" ,
102102 "method" : "GET" ,
103103 "status_code" : 200 ,
104104 "reason" : "OK" ,
You can’t perform that action at this time.
0 commit comments