]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
fix test suite warnings
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 30 Apr 2023 22:27:24 +0000 (18:27 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 10 May 2023 00:23:48 +0000 (20:23 -0400)
commit60b31198311eedfa3814e7098c94d3aa29338fdd
tree5fe3a55ef67ab14fa63a0a3122a1326b830ceb72
parent228490ead7048f2e558c25b0f055bdb952272ec4
fix test suite warnings

fix a handful of warnings that were emitting but not raising,
usually because they were inside an "expect_warnings" block.

modify "expect_warnings" to always use "raise_on_any_unexpected"
behavior; remove this parameter.

Fixed issue in semi-private ``await_only()`` and ``await_fallback()``
concurrency functions where the given awaitable would remain un-awaited if
the function threw a ``GreenletError``, which could cause "was not awaited"
warnings later on if the program continued. In this case, the given
awaitable is now cancelled before the exception is thrown.

Change-Id: I33668c5e8c670454a3d879e559096fb873b57244
28 files changed:
doc/build/changelog/unreleased_20/await_cancel.rst [new file with mode: 0644]
doc/build/orm/queryguide/columns.rst
examples/versioned_history/test_versioning.py
lib/sqlalchemy/dialects/postgresql/asyncpg.py
lib/sqlalchemy/dialects/sqlite/aiosqlite.py
lib/sqlalchemy/orm/_orm_constructors.py
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/testing/assertions.py
lib/sqlalchemy/util/_concurrency_py3k.py
test/aaa_profiling/test_memusage.py
test/base/test_concurrency_py3k.py
test/dialect/mysql/test_query.py
test/engine/test_execute.py
test/engine/test_pool.py
test/ext/asyncio/test_session_py3k.py
test/ext/test_deprecations.py
test/orm/declarative/test_basic.py
test/orm/declarative/test_inheritance.py
test/orm/inheritance/test_relationship.py
test/orm/test_collection.py
test/orm/test_deprecations.py
test/orm/test_eager_relations.py
test/orm/test_joins.py
test/orm/test_relationships.py
test/orm/test_session.py
test/orm/test_utils.py
test/sql/test_delete.py
test/sql/test_insert_exec.py