From: Mike Bayer Date: Thu, 25 Aug 2022 18:05:16 +0000 (-0400) Subject: try out greenlet / cython on py311 X-Git-Tag: rel_1_4_41~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef65749704796130768c31dec37064d70e6695e7;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git try out greenlet / cython on py311 I've updated jenkins to see what happens Change-Id: If71b3f6da98dacd21419e8ece2395bc5fd20d133 (cherry picked from commit e14a8e3295d289e256bf236d0461034f35b7fcc3) --- diff --git a/test/ext/asyncio/test_engine_py3k.py b/test/ext/asyncio/test_engine_py3k.py index eddf4e52fc..673eff2fb1 100644 --- a/test/ext/asyncio/test_engine_py3k.py +++ b/test/ext/asyncio/test_engine_py3k.py @@ -1,4 +1,3 @@ -import asyncio import inspect as stdlib_inspect from sqlalchemy import Column @@ -488,7 +487,8 @@ class AsyncEngineTest(EngineFixture): @async_test async def test_init_once_concurrency(self, async_engine): async with async_engine.connect() as c1, async_engine.connect() as c2: - await asyncio.wait([c1, c2]) + eq_(await c1.scalar(select(1)), 1) + eq_(await c2.scalar(select(1)), 1) @async_test async def test_connect_ctxmanager(self, async_engine): diff --git a/tox.ini b/tox.ini index 43eb04d817..2000351716 100644 --- a/tox.ini +++ b/tox.ini @@ -21,10 +21,6 @@ deps= pytest-xdist mock; python_version < '3.3' - # cython and greenlet both not working on 3.11 - # note cython not working for 3.11 at all right now - git+https://github.com/sqlalchemyorg/greenlet/@fix_py311_cpp#egg=greenlet; python_version >= '3.11' - sqlite: .[aiosqlite] sqlite_file: .[aiosqlite] sqlite_file: .[sqlcipher]; python_version >= '3' and python_version < '3.10'