()
| 1615 | fingerprint = "A0:C4:A7:46:00:ED:A7:2D:C0:BE:CB:9A:8C:B6:07:CA:58:EE:74:5E" |
| 1616 | |
| 1617 | def request() -> None: |
| 1618 | pool = HTTPSConnectionPool( |
| 1619 | self.host, |
| 1620 | self.port, |
| 1621 | assert_fingerprint=fingerprint, |
| 1622 | cert_reqs="CERT_NONE", |
| 1623 | ) |
| 1624 | try: |
| 1625 | timeout = Timeout(connect=LONG_TIMEOUT, read=SHORT_TIMEOUT) |
| 1626 | response = pool.urlopen( |
| 1627 | "GET", "/", preload_content=False, retries=0, timeout=timeout |
| 1628 | ) |
| 1629 | response.read() |
| 1630 | finally: |
| 1631 | pool.close() |
| 1632 | |
| 1633 | with pytest.raises(MaxRetryError) as cm: |
| 1634 | request() |
no test coverage detected