diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2014-06-05 02:32:53 +0200 |
---|---|---|
committer | mrmilosz <milosz@milosz.ca> | 2015-12-12 17:51:08 -0500 |
commit | 7302f348bc7ec7121e04aae70eb8e7705b971334 (patch) | |
tree | 9beb2938b1db95302fd303d8e982104cb21d4da0 | |
parent | d297976d6d01273745e8e1f18b435d84e84984fc (diff) | |
download | psycopg2-7302f348bc7ec7121e04aae70eb8e7705b971334.tar.gz |
Added test with objects without length as callproc param
-rwxr-xr-x | tests/test_cursor.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_cursor.py b/tests/test_cursor.py index 00143ee..552b29c 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__) |