From 60b31198311eedfa3814e7098c94d3aa29338fdd Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 30 Apr 2023 18:27:24 -0400 Subject: 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 --- test/sql/test_insert_exec.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'test/sql/test_insert_exec.py') diff --git a/test/sql/test_insert_exec.py b/test/sql/test_insert_exec.py index f545671e7..0fee9bd35 100644 --- a/test/sql/test_insert_exec.py +++ b/test/sql/test_insert_exec.py @@ -1239,7 +1239,6 @@ class IMVSentinelTest(fixtures.TestBase): ): return expect_warnings( "Batches were downgraded", - raise_on_any_unexpected=True, ) return contextlib.nullcontext() @@ -1982,7 +1981,6 @@ class IMVSentinelTest(fixtures.TestBase): ): with expect_warnings( "Batches were downgraded for sorted INSERT", - raise_on_any_unexpected=True, ): result = connection.execute(stmt, data) else: @@ -2407,7 +2405,6 @@ class IMVSentinelTest(fixtures.TestBase): with expect_warnings( r".*but has no Python-side or server-side default ", - raise_on_any_unexpected=True, ): with expect_raises(exc.IntegrityError): connection.execute( -- cgit v1.2.1