summaryrefslogtreecommitdiff
path: root/test/orm/test_utils.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2023-04-30 18:27:24 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2023-05-09 20:23:48 -0400
commit60b31198311eedfa3814e7098c94d3aa29338fdd (patch)
tree5fe3a55ef67ab14fa63a0a3122a1326b830ceb72 /test/orm/test_utils.py
parent228490ead7048f2e558c25b0f055bdb952272ec4 (diff)
downloadsqlalchemy-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 'test/orm/test_utils.py')
-rw-r--r--test/orm/test_utils.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/test/orm/test_utils.py b/test/orm/test_utils.py
index 3bd0230de..4d6c14863 100644
--- a/test/orm/test_utils.py
+++ b/test/orm/test_utils.py
@@ -78,7 +78,6 @@ class ContextualWarningsTest(fixtures.TestBase):
"bar.foo_id, which conflicts with relationship(s): 'Foo.bars' "
"(copies foo.id to bar.foo_id). "
),
- raise_on_any_unexpected=True,
):
decl_base.registry.configure()
@@ -96,7 +95,6 @@ class ContextualWarningsTest(fixtures.TestBase):
"invoked automatically in response to a user-initiated "
"operation.)"
),
- raise_on_any_unexpected=True,
):
FooAlias = aliased(Foo)
assert hasattr(FooAlias, "bars")
@@ -115,7 +113,6 @@ class ContextualWarningsTest(fixtures.TestBase):
"invoked automatically in response to a user-initiated "
"operation.)"
),
- raise_on_any_unexpected=True,
):
foo = Foo()
assert hasattr(foo, "bars")
@@ -145,7 +142,6 @@ class ContextualWarningsTest(fixtures.TestBase):
"process, which was invoked automatically in response to a "
"user-initiated operation.)"
),
- raise_on_any_unexpected=True,
):
sess.execute(select(Foo))