From: Daniele Varrazzo Date: Fri, 23 Jul 2021 21:32:37 +0000 (+0200) Subject: Clear the caplog in retried tests X-Git-Tag: 3.0.dev2~38 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=550845da0c3044bb992141642e4531a630a2d20a;p=thirdparty%2Fpsycopg.git Clear the caplog in retried tests --- diff --git a/tests/pool/test_pool.py b/tests/pool/test_pool.py index e8727a343..15036aede 100644 --- a/tests/pool/test_pool.py +++ b/tests/pool/test_pool.py @@ -709,6 +709,7 @@ def test_reconnect(proxy, caplog, monkeypatch, retries): for retry in retries: with retry: + caplog.clear() proxy.start() with pool.ConnectionPool(proxy.client_dsn, min_size=1) as p: p.wait(2.0) diff --git a/tests/pool/test_pool_async.py b/tests/pool/test_pool_async.py index 37a6733d7..139a8fd76 100644 --- a/tests/pool/test_pool_async.py +++ b/tests/pool/test_pool_async.py @@ -721,6 +721,7 @@ async def test_reconnect(proxy, caplog, monkeypatch, retries): async for retry in retries: with retry: + caplog.clear() proxy.start() async with pool.AsyncConnectionPool( proxy.client_dsn, min_size=1