(dsn, monkeypatch)
| 392 | @pytest.mark.slow |
| 393 | @pytest.mark.timing |
| 394 | def test_open_wait(dsn, monkeypatch): |
| 395 | delay_connection(monkeypatch, 0.1) |
| 396 | with pytest.raises(pool.PoolTimeout): |
| 397 | p = pool.ConnectionPool(dsn, min_size=4, num_workers=1, open=False) |
| 398 | try: |
| 399 | p.open(wait=True, timeout=0.3) |
| 400 | finally: |
| 401 | p.close() |
| 402 | |
| 403 | p = pool.ConnectionPool(dsn, min_size=4, num_workers=1, open=False) |
| 404 | try: |
| 405 | p.open(wait=True, timeout=0.5) |
| 406 | finally: |
| 407 | p.close() |
| 408 | |
| 409 | |
| 410 | @pytest.mark.slow |
nothing calls this directly
no test coverage detected