MCPcopy
hub / github.com/urllib3/urllib3 / test_no_host

Method test_no_host

test/test_connectionpool.py:430–432  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

428 assert pool.timeout.total is None
429
430 def test_no_host(self) -> None:
431 with pytest.raises(LocationValueError):
432 HTTPConnectionPool(None) # type: ignore[arg-type]
433
434 def test_contextmanager(self) -> None:
435 with connection_from_url("http://google.com:80") as pool:

Callers

nothing calls this directly

Calls 1

HTTPConnectionPoolClass · 0.90

Tested by

no test coverage detected