summaryrefslogtreecommitdiff
path: root/test/dialect/test_postgresql.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/dialect/test_postgresql.py')
-rw-r--r--test/dialect/test_postgresql.py4
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