diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2023-04-30 18:27:24 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2023-05-09 20:23:48 -0400 |
| commit | 60b31198311eedfa3814e7098c94d3aa29338fdd (patch) | |
| tree | 5fe3a55ef67ab14fa63a0a3122a1326b830ceb72 /examples | |
| parent | 228490ead7048f2e558c25b0f055bdb952272ec4 (diff) | |
| download | sqlalchemy-60b31198311eedfa3814e7098c94d3aa29338fdd.tar.gz | |
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
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/versioned_history/test_versioning.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/versioned_history/test_versioning.py b/examples/versioned_history/test_versioning.py index 9caadc043..392a415ff 100644 --- a/examples/versioned_history/test_versioning.py +++ b/examples/versioned_history/test_versioning.py @@ -13,9 +13,9 @@ from sqlalchemy import Integer from sqlalchemy import join from sqlalchemy import select from sqlalchemy import String -from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import clear_mappers from sqlalchemy.orm import column_property +from sqlalchemy.orm import declarative_base from sqlalchemy.orm import DeclarativeBase from sqlalchemy.orm import deferred from sqlalchemy.orm import exc as orm_exc |
