]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
test: mark a couple of test slow
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 12 Dec 2023 17:02:22 +0000 (18:02 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 12 Dec 2023 17:02:22 +0000 (18:02 +0100)
Sub-second, but noticeable glitches in my stream of green dots.

tests/test_connection.py
tests/test_connection_async.py

index 3df8475d8230ff84e8e2edac2e9bdbc9d5315d23..7b823beaa8c9d0fe7ac9be8052d17fca68e4d576 100644 (file)
@@ -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",
index b71d58bcc120b7c81fc83ef868162e7dc61de40c..a35973c69042ed1ed4425aaaf8beca83f12bb141 100644 (file)
@@ -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)