(self)
| 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() |
nothing calls this directly
no test coverage detected