summaryrefslogtreecommitdiff
path: root/test/sql/test_compiler.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/sql/test_compiler.py')
-rw-r--r--test/sql/test_compiler.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/sql/test_compiler.py b/test/sql/test_compiler.py
index 486b54682..54c3e2f6e 100644
--- a/test/sql/test_compiler.py
+++ b/test/sql/test_compiler.py
@@ -1995,13 +1995,11 @@ class SelectTest(fixtures.TestBase, AssertsCompiledSQL):
def test_compound_selects(self):
assert_raises_message(
- exc.ArgumentError,
+ exc.CompileError,
"All selectables passed to CompoundSelect "
"must have identical numbers of columns; "
"select #1 has 2 columns, select #2 has 3",
- union,
- table3.select(),
- table1.select(),
+ union(table3.select(), table1.select()).compile,
)
x = union(