summaryrefslogtreecommitdiff
path: root/test/sql/test_selectable.py
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2022-01-06 19:15:06 +0000
committerGerrit Code Review <gerrit@ci3.zzzcomputing.com>2022-01-06 19:15:06 +0000
commitdd5f9c2039731adb6c019c4cc3a39694f9b236ad (patch)
treece80dd61476c0c09f792f5690c7c7434b7876cc7 /test/sql/test_selectable.py
parentf3c93170dcbe705da25bc18bad2b29620d82a490 (diff)
parent01c50c64e302c193733cef7fb146fbab8eaa44bd (diff)
downloadsqlalchemy-dd5f9c2039731adb6c019c4cc3a39694f9b236ad.tar.gz
Merge "Remove all remaining removed_in_20 warnings slated for removal" into main
Diffstat (limited to 'test/sql/test_selectable.py')
-rw-r--r--test/sql/test_selectable.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/sql/test_selectable.py b/test/sql/test_selectable.py
index c3a2d8d3c..a63ae5be4 100644
--- a/test/sql/test_selectable.py
+++ b/test/sql/test_selectable.py
@@ -608,6 +608,17 @@ class SelectableTest(
"table1.col3, table1.colx FROM table1) AS anon_1",
)
+ def test_with_only_generative_no_list(self):
+ s1 = table1.select().scalar_subquery()
+
+ with testing.expect_raises_message(
+ exc.ArgumentError,
+ r"The \"columns\" argument to "
+ r"Select.with_only_columns\(\), when referring "
+ "to a sequence of items, is now passed",
+ ):
+ s1.with_only_columns([s1])
+
@testing.combinations(
(
[table1.c.col1],