This commit is contained in:
Charles Leifer 2019-07-22 08:53:03 -05:00
parent e113883eab
commit 51ef96fdf4
5 changed files with 8 additions and 16 deletions

View file

@ -232,7 +232,7 @@ class CursorTests(unittest.TestCase):
""")
def CheckExecuteWrongSqlArg(self):
with self.assertRaises(ValueError):
with self.assertRaises(TypeError):
self.cu.execute(42)
def CheckExecuteArgInt(self):
@ -379,7 +379,7 @@ class CursorTests(unittest.TestCase):
self.cu.executemany("insert into test(income) values (?)", mygen())
def CheckExecuteManyWrongSqlArg(self):
with self.assertRaises(ValueError):
with self.assertRaises(TypeError):
self.cu.executemany(42, [(3,)])
def CheckExecuteManySelect(self):