summaryrefslogtreecommitdiff
path: root/test/sql
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2023-05-10 15:11:06 +0000
committerGerrit Code Review <gerrit@bbpush.zzzcomputing.com>2023-05-10 15:11:06 +0000
commitbce61160a9aec321ea0af4a59d4b83ff93a0429f (patch)
tree3754696c2d8f97d92507309ef4c13037b7372bf3 /test/sql
parent987285fb4b13c39bcc6b8922e618d9e830577dda (diff)
parent60b31198311eedfa3814e7098c94d3aa29338fdd (diff)
downloadsqlalchemy-bce61160a9aec321ea0af4a59d4b83ff93a0429f.tar.gz
Merge "fix test suite warnings" into main
Diffstat (limited to 'test/sql')
-rw-r--r--test/sql/test_delete.py8
-rw-r--r--test/sql/test_insert_exec.py3
2 files changed, 6 insertions, 5 deletions
diff --git a/test/sql/test_delete.py b/test/sql/test_delete.py
index 5b7e5ebbe..9f9e104b6 100644
--- a/test/sql/test_delete.py
+++ b/test/sql/test_delete.py
@@ -76,11 +76,15 @@ class DeleteTest(_DeleteTestBase, fixtures.TablesTest, AssertsCompiledSQL):
def test_where_empty(self):
table1 = self.tables.mytable
- with expect_deprecated():
+ with expect_deprecated(
+ r"Invoking and_\(\) without arguments is deprecated"
+ ):
self.assert_compile(
table1.delete().where(and_()), "DELETE FROM mytable"
)
- with expect_deprecated():
+ with expect_deprecated(
+ r"Invoking or_\(\) without arguments is deprecated"
+ ):
self.assert_compile(
table1.delete().where(or_()), "DELETE FROM mytable"
)
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(