summaryrefslogtreecommitdiff
path: root/test/sql
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2020-12-14 17:44:33 +0000
committerGerrit Code Review <gerrit@bbpush.zzzcomputing.com>2020-12-14 17:44:33 +0000
commite8c6780d9e102a49cc2b1c7a1e5d735c81659caf (patch)
tree52b9da32d301a0b8b01a81f7f7f3417c0cf8208d /test/sql
parent6eaa1bea221fdcb5943a037c31951d8ef103e092 (diff)
parent4beecfb9040a7c202a8331b170cfd13119ddd7a3 (diff)
downloadsqlalchemy-e8c6780d9e102a49cc2b1c7a1e5d735c81659caf.tar.gz
Merge "Emit deprecation warnings for plain text under Session"
Diffstat (limited to 'test/sql')
-rw-r--r--test/sql/test_roles.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/test/sql/test_roles.py b/test/sql/test_roles.py
index 8759bbb22..0ef90e89e 100644
--- a/test/sql/test_roles.py
+++ b/test/sql/test_roles.py
@@ -173,11 +173,14 @@ class RoleTest(fixtures.TestBase):
)
def test_statement_text_coercion(self):
- is_true(
- expect(
- roles.CoerceTextStatementRole, "select * from table"
- ).compare(text("select * from table"))
- )
+ with testing.expect_deprecated_20(
+ "Using plain strings to indicate SQL statements"
+ ):
+ is_true(
+ expect(
+ roles.CoerceTextStatementRole, "select * from table"
+ ).compare(text("select * from table"))
+ )
def test_select_statement_no_text_coercion(self):
assert_raises_message(