From 6a016aaee32db98d0736b93458ae2920d35870a1 Mon Sep 17 00:00:00 2001 From: Jacob Getto Date: Tue, 11 Jun 2013 15:19:57 -0400 Subject: [PATCH] updated exception type in test for #18 --- tests/nuodb_cursor_test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/nuodb_cursor_test.py b/tests/nuodb_cursor_test.py index b89fb9f..c242f43 100644 --- a/tests/nuodb_cursor_test.py +++ b/tests/nuodb_cursor_test.py @@ -4,7 +4,7 @@ import unittest; from nuodb_base import NuoBase; -from pynuodb.exception import Error, DataError; +from pynuodb.exception import DataError, ProgrammingError; class NuoDBCursorTest(NuoBase): @@ -52,7 +52,7 @@ def test_insufficient_parameters(self): try: cursor.execute("SELECT ?, ? FROM DUAL", [1]); self.fail(); - except TypeError as e: + except ProgrammingError as e: self.assertIsNotNone(e) def test_toomany_parameters(self): @@ -63,13 +63,13 @@ def test_toomany_parameters(self): try: cursor.execute("SELECT 1 FROM DUAL", [1]); self.fail(); - except TypeError as e: + except ProgrammingError as e: self.assertIsNotNone(e); try: cursor.execute("SELECT ? FROM DUAL", [1,2]); self.fail(); - except TypeError as e: + except ProgrammingError as e: self.assertIsNotNone(e); def test_incorrect_parameters(self):