summaryrefslogtreecommitdiff
path: root/test/dialect/test_postgresql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-01-28 15:20:21 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2012-01-28 15:20:21 -0500
commit09553dc90f4a95b314994b48068b046de1413104 (patch)
tree4103d05a99beb0ca07dea7def9aa0514809f10a1 /test/dialect/test_postgresql.py
parent45e6875752fcaf7d3a60907959ed9d154cca0d5d (diff)
downloadsqlalchemy-09553dc90f4a95b314994b48068b046de1413104.tar.gz
- [feature] Dialect-specific compilers now raise
CompileException for all type/statement compilation issues, instead of InvalidRequestError or ArgumentError. The DDL for CREATE TABLE will re-raise CompileExceptions to include table/column information for the problematic column. [ticket:2361]
Diffstat (limited to 'test/dialect/test_postgresql.py')
-rw-r--r--test/dialect/test_postgresql.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dialect/test_postgresql.py b/test/dialect/test_postgresql.py
index 7279508ba..769f18ce9 100644
--- a/test/dialect/test_postgresql.py
+++ b/test/dialect/test_postgresql.py
@@ -401,8 +401,8 @@ class EnumTest(fixtures.TestBase, AssertsExecutionResults, AssertsCompiledSQL):
def test_name_required(self):
metadata = MetaData(testing.db)
etype = Enum('four', 'five', 'six', metadata=metadata)
- assert_raises(exc.ArgumentError, etype.create)
- assert_raises(exc.ArgumentError, etype.compile,
+ assert_raises(exc.CompileError, etype.create)
+ assert_raises(exc.CompileError, etype.compile,
dialect=postgresql.dialect())
@testing.fails_on('postgresql+zxjdbc',