From 7302f348bc7ec7121e04aae70eb8e7705b971334 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Thu, 5 Jun 2014 02:32:53 +0200 Subject: [PATCH] Added test with objects without length as callproc param --- tests/test_cursor.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_cursor.py b/tests/test_cursor.py index 00143ee9..552b29c0 100755 --- a/tests/test_cursor.py +++ b/tests/test_cursor.py @@ -528,6 +528,11 @@ class CursorTests(ConnectingTestCase): self.assertRaises(exception, cur.callproc, procname, parameter_sequence) self.conn.rollback() + def test_callproc_badparam(self): + cur = self.conn.cursor() + self.assertRaises(TypeError, cur.callproc, 'lower', 42) + + def test_suite(): return unittest.TestLoader().loadTestsFromName(__name__)