]> git.ipfire.org Git - thirdparty/psycopg.git/commit
test: skip some tests that raise an error on pypy 3.9
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 2 Dec 2023 01:56:35 +0000 (02:56 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 2 Dec 2023 02:01:28 +0000 (03:01 +0100)
commit602c875f7156e74f2b923a3fb4c2e9aa476ba6cf
tree2b749c8b08f441c9d7d2eae39b1038593b1bcd14
parent150ebad66da7767416da7cae4871e7532abc352f
test: skip some tests that raise an error on pypy 3.9

The error is:

    anyio/_backends/_asyncio.py:2039: in _cancel_all_tasks
        raise cast(BaseException, task.exception())
    ...
    >               result = coro.throw(exc)
    E               RuntimeError: can't do async_generator.athrow().throw()

The error only happens on Pypy 3.9, and doesn't happen on master, only
in the maint 3.1 branch. 3.1 uses anyio < 4, master uses anyio >= 4, so
I would say that the error is limited to only this combination and that
it is an anyio bug.

The problem affects just two tests, so let's just skip them. Whatever.
tests/test_connection_async.py