diff options
author | Michael Trier <mtrier@gmail.com> | 2010-02-23 04:39:48 +0000 |
---|---|---|
committer | Michael Trier <mtrier@gmail.com> | 2010-02-23 04:39:48 +0000 |
commit | 3c478101673113d8679525c0d1c298fa3235e3fc (patch) | |
tree | 947f714a61119ea8c5263295af070565c53ad354 /test/dialect/test_postgresql.py | |
parent | bee34dfcd61106ee8eecebd7913efe1904ce5a4a (diff) | |
download | sqlalchemy-3c478101673113d8679525c0d1c298fa3235e3fc.tar.gz |
Work around py-postgresql handling of exceptions.
Diffstat (limited to 'test/dialect/test_postgresql.py')
-rw-r--r-- | test/dialect/test_postgresql.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/dialect/test_postgresql.py b/test/dialect/test_postgresql.py index 9361f4dbc..073be5cb9 100644 --- a/test/dialect/test_postgresql.py +++ b/test/dialect/test_postgresql.py @@ -224,7 +224,7 @@ class FloatCoercionTest(TablesTest, AssertsExecutionResults): func.stddev_pop(data_table.c.data, type_=type_) ]) ).scalar() - + eq_(self._round(ret), result) ret = testing.db.execute( @@ -853,6 +853,8 @@ class InsertTest(TestBase, AssertsExecutionResults): if self.engine.driver == 'pg8000': exception_cls = exc.ProgrammingError + elif self.engine.driver == 'pypostgresql': + exception_cls = Exception else: exception_cls = exc.IntegrityError |