summaryrefslogtreecommitdiff
path: root/test/ext/asyncio/test_scoping_py3k.py
Commit message (Collapse)AuthorAgeFilesLines
* use code generation for scoped_sessionMike Bayer2022-04-121-1/+2
| | | | | | | | | | | | | | | | | | | our decorator thing generates code in any case, so point it at the file itself to generate real code for the blocks rather than doing things dynamically. this will allow typing tools to have no problem whatsoever and we also reduce import time overhead. file size will be a lot bigger though, shrugs. syntax / dupe method / etc. checking will be accomplished by our existing linting / typing / formatting tools. As we are also using "from __future__ import annotations", we also no longer have to apply quotes to generated annotations. Change-Id: I20962cb65bda63ff0fb67357ab346e9b1ef4f108
* First round of removal of python 2Federico Caselli2021-11-011-3/+0
| | | | | References: #4600 Change-Id: I61e35bc93fe95610ae75b31c18a3282558cd4ffe
* fix python 3.6 testsFederico Caselli2021-09-291-2/+3
| | | | Change-Id: Ie9184fd4dc8fb68dd218c82b7f6a93332aa3d24a
* Add missing methods added in :ticket:`6991`Federico Caselli2021-09-281-0/+32
| | | | | | | to ``scoped_session`` and ``async_scoped_session``. Fixes: #7103 Change-Id: If80481771d9b428f2403af3862e0479bd069257e
* pin async scoping tests at python 3.7Mike Bayer2021-06-161-2/+4
| | | | | | as it relies upon asyncio.current_task that's not in 3.6 Change-Id: I2b09295bf736811f260640102214a531c9b9e816
* Implement async_scoped_sessionjason3gb2021-06-161-0/+44
Implemented :class:`_asyncio.async_scoped_session` to address some asyncio-related incompatibilities between :class:`_orm.scoped_session` and :class:`_asyncio.AsyncSession`, in which some methods (notably the :meth:`_asyncio.async_scoped_session.remove` method) should be used with the ``await`` keyword. Fixes: #6583 Closes: #6603 Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/6603 Pull-request-sha: 0e8ef87dc824dcd83dca01641441afc453c8e07a Change-Id: I9bfe56f8670302ff0015d9dc56c1e3ac5b92b118