Skip coverage of AttributeError exception in HTTPConnectionPool._get_conn()
MODIFY
src/urllib3/connectionpool.py
src/urllib3/connectionpool.py
@@ -257,7 +257,7 @@ class HTTPConnectionPool(ConnectionPool, RequestMethods):
conn = self.pool.get(block=self.block, timeout=timeout)
except AttributeError: # self.pool is None
- raise ClosedPoolError(self, "Pool is closed.")
+ raise ClosedPoolError(self, "Pool is closed.") # Defensive:
except queue.Empty:
if self.block:

Skip coverage of AttributeError exception in HTTPConnectionPool._get_conn()