summaryrefslogtreecommitdiff
path: root/test/sql/test_roles.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/sql/test_roles.py')
-rw-r--r--test/sql/test_roles.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/test/sql/test_roles.py b/test/sql/test_roles.py
index abbef8e28..5c9ed3588 100644
--- a/test/sql/test_roles.py
+++ b/test/sql/test_roles.py
@@ -226,15 +226,13 @@ class RoleTest(fixtures.TestBase):
):
expect(roles.ExpressionElementRole, Thing())
- def test_statement_text_coercion(self):
- with testing.expect_deprecated_20(
- "Using plain strings to indicate SQL statements"
+ def test_no_statement_text_coercion(self):
+ with testing.expect_raises_message(
+ exc.ArgumentError,
+ r"Textual SQL expression 'select \* from table' should be "
+ "explicitly declared",
):
- is_true(
- expect(roles.StatementRole, "select * from table").compare(
- text("select * from table")
- )
- )
+ expect(roles.StatementRole, "select * from table")
def test_select_statement_no_text_coercion(self):
assert_raises_message(