MCPcopy
hub / github.com/urllib3/urllib3 / run

Method run

test/with_dummyserver/test_socketlevel.py:1069–1078  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1067 self.response: BaseHTTPResponse | None = None
1068
1069 def run(self) -> None:
1070 with HTTPSConnectionPool(
1071 self.host, self.port, ca_certs=DEFAULT_CA
1072 ) as pool:
1073 self.response = pool.urlopen(
1074 "GET", "/", preload_content=False, retries=0
1075 )
1076 with pytest.raises(ProtocolError, match="Connection broken"):
1077 starting_read.set()
1078 self.response.read()
1079
1080 test_client = TestClient(self.host, self.port)
1081 test_client.start()

Callers

nothing calls this directly

Calls 3

HTTPSConnectionPoolClass · 0.90
urlopenMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected