From: Michael Trier Date: Sun, 19 Apr 2009 21:23:39 +0000 (+0000) Subject: Corrected exception references in Postgres dialect. X-Git-Tag: rel_0_6_6~230 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfa496797b6cd3694787d311ef12025b1d0edee7;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Corrected exception references in Postgres dialect. --- diff --git a/test/dialect/postgres.py b/test/dialect/postgres.py index b25270f3a9..997c3fcb5e 100644 --- a/test/dialect/postgres.py +++ b/test/dialect/postgres.py @@ -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'})