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 6
6
from urllib import urlopen
7
7
8
8
try :
9
- from httplib import HTTPConnection
9
+ from httplib import HTTPSConnection
10
10
except ImportError :
11
- from http .client import HTTPConnection
11
+ from http .client import HTTPSConnection
12
12
13
13
from sentry_sdk import capture_message
14
14
from sentry_sdk .integrations .stdlib import StdlibIntegration
@@ -77,7 +77,7 @@ def test_httplib_misuse(sentry_init, capture_events):
77
77
sentry_init ()
78
78
events = capture_events ()
79
79
80
- conn = HTTPConnection ("httpbin.org" , 80 )
80
+ conn = HTTPSConnection ("httpbin.org" , 443 )
81
81
conn .request ("GET" , "/anything/foo" )
82
82
83
83
with pytest .raises (Exception ):
@@ -98,7 +98,7 @@ def test_httplib_misuse(sentry_init, capture_events):
98
98
assert crumb ["type" ] == "http"
99
99
assert crumb ["category" ] == "httplib"
100
100
assert crumb ["data" ] == {
101
- "url" : "http ://httpbin.org/anything/foo" ,
101
+ "url" : "https ://httpbin.org/anything/foo" ,
102
102
"method" : "GET" ,
103
103
"status_code" : 200 ,
104
104
"reason" : "OK" ,
You can’t perform that action at this time.
0 commit comments