Skip to content

Commit

Permalink
updated exception type in test for #18
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Getto committed Jun 11, 2013
1 parent 05e977d commit 6a016aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/nuodb_cursor_test.py
Expand Up @@ -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):

Expand Down Expand Up @@ -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):
Expand All @@ -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):
Expand Down

0 comments on commit 6a016aa

Please sign in to comment.