summaryrefslogtreecommitdiff
path: root/test/sql/test_deprecations.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/sql/test_deprecations.py')
-rw-r--r--test/sql/test_deprecations.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/sql/test_deprecations.py b/test/sql/test_deprecations.py
index 44135e373..9b74ab1fa 100644
--- a/test/sql/test_deprecations.py
+++ b/test/sql/test_deprecations.py
@@ -451,6 +451,17 @@ class SelectableTest(fixtures.TestBase, AssertsCompiledSQL):
"deprecated"
)
+ def test_froms_renamed(self):
+ t1 = table("t1", column("q"))
+
+ stmt = select(t1)
+
+ with testing.expect_deprecated(
+ r"The Select.froms attribute is moved to the "
+ r"Select.get_final_froms\(\) method."
+ ):
+ eq_(stmt.froms, [t1])
+
def test_select_list_argument(self):
with testing.expect_deprecated_20(