From 08ddac73f0276963a079dd42bd971ce9d684cb6a Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Tue, 12 Dec 2023 18:02:22 +0100 Subject: [PATCH] test: mark a couple of test slow Sub-second, but noticeable glitches in my stream of green dots. --- tests/test_connection.py | 1 + tests/test_connection_async.py | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/test_connection.py b/tests/test_connection.py index 3df8475d8..7b823beaa 100644 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -122,6 +122,7 @@ def test_cursor_closed(conn): # TODO: the INERROR started failing in the C implementation in Python 3.12a7 # compiled with Cython-3.0.0b3, not before. +@pytest.mark.slow @pytest.mark.xfail( (pq.__impl__ in ("c", "binary") and sys.version_info[:2] == (3, 12)), reason="Something with Exceptions, C, Python 3.12", diff --git a/tests/test_connection_async.py b/tests/test_connection_async.py index b71d58bcc..a35973c69 100644 --- a/tests/test_connection_async.py +++ b/tests/test_connection_async.py @@ -131,6 +131,7 @@ async def test_cursor_closed(aconn): aconn.cursor() +@pytest.mark.slow @anyio_3_runtime_error async def test_connection_warn_close(aconn_cls, dsn, recwarn, gc_collect): conn = await aconn_cls.connect(dsn) -- 2.47.2