Speed up queue test by using timeout=0
Queue.get() accepts any non-negative number, so 0 works. It's also not
arbitrary like 1 was, and the test suite now takes one less second to
run!
@@ -26,6 +26,6 @@ class TestMonkeypatchResistance(object):
def test_queue_monkeypatching(self):
with mock.patch.object(queue, "Empty", BadError):
with HTTPConnectionPool(host="localhost", block=True) as http:
- http._get_conn(timeout=1)
+ http._get_conn()
with pytest.raises(EmptyPoolError):
- http._get_conn(timeout=1)
+ http._get_conn(timeout=0)
