]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Corrected exception references in Postgres dialect.
authorMichael Trier <mtrier@gmail.com>
Sun, 19 Apr 2009 21:23:39 +0000 (21:23 +0000)
committerMichael Trier <mtrier@gmail.com>
Sun, 19 Apr 2009 21:23:39 +0000 (21:23 +0000)
test/dialect/postgres.py

index b25270f3a9931af332ce9dcb204d4f2fab2f4195..997c3fcb5e8b170387ef7b303c59c74c55e03101 100644 (file)
@@ -342,9 +342,9 @@ class InsertTest(TestBase, AssertsExecutionResults):
         table.insert().execute({'id':30, 'data':'d1'})
         
         if testing.db.driver == 'pg8000':
-            exception_cls = ProgrammingError
+            exception_cls = exc.ProgrammingError
         else:
-            exception_cls = IntegrityError
+            exception_cls = exc.IntegrityError
         
         self.assertRaisesMessage(exception_cls, "violates not-null constraint", table.insert().execute, {'data':'d2'})
         self.assertRaisesMessage(exception_cls, "violates not-null constraint", table.insert().execute, {'data':'d2'}, {'data':'d3'})