From: Daniele Varrazzo Date: Wed, 15 Mar 2023 03:29:32 +0000 (+0100) Subject: test: mark some scheduler tests time-sensitive X-Git-Tag: pool-3.1.7~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f08e29184095645fc046da435f2f2e03ccb4982;p=thirdparty%2Fpsycopg.git test: mark some scheduler tests time-sensitive Close #502 --- diff --git a/tests/pool/test_sched.py b/tests/pool/test_sched.py index b3d25723f..b58be2f81 100644 --- a/tests/pool/test_sched.py +++ b/tests/pool/test_sched.py @@ -15,6 +15,7 @@ pytestmark = [pytest.mark.timing] @pytest.mark.slow +@pytest.mark.timing def test_sched(): s = Scheduler() results = [] @@ -36,6 +37,7 @@ def test_sched(): @pytest.mark.slow +@pytest.mark.timing def test_sched_thread(): s = Scheduler() t = Thread(target=s.run, daemon=True) @@ -64,6 +66,7 @@ def test_sched_thread(): @pytest.mark.slow +@pytest.mark.timing def test_sched_error(caplog): caplog.set_level(logging.WARNING, logger="psycopg") s = Scheduler() diff --git a/tests/pool/test_sched_async.py b/tests/pool/test_sched_async.py index 28df510c2..82eb44276 100644 --- a/tests/pool/test_sched_async.py +++ b/tests/pool/test_sched_async.py @@ -17,6 +17,7 @@ pytestmark = [pytest.mark.anyio, pytest.mark.timing] @pytest.mark.slow +@pytest.mark.timing async def test_sched(): s = AsyncScheduler() results = [] @@ -38,6 +39,7 @@ async def test_sched(): @pytest.mark.slow +@pytest.mark.timing async def test_sched_task(): s = AsyncScheduler() t = create_task(s.run()) @@ -65,6 +67,7 @@ async def test_sched_task(): @pytest.mark.slow +@pytest.mark.timing async def test_sched_error(caplog): caplog.set_level(logging.WARNING, logger="psycopg") s = AsyncScheduler()