From cfa496797b6cd3694787d311ef12025b1d0edee7 Mon Sep 17 00:00:00 2001 From: Michael Trier Date: Sun, 19 Apr 2009 21:23:39 +0000 Subject: [PATCH] Corrected exception references in Postgres dialect. --- test/dialect/postgres.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'}) -- 2.47.3