From 2e3833f7fbd8c6c8c47d370f5dc575300e662185 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Wed, 16 Oct 2013 19:09:51 +0100 Subject: [PATCH] Really test named cursors in test_scroll_named() --- tests/test_cursor.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_cursor.py b/tests/test_cursor.py index 36d665ab..c35d26ca 100755 --- a/tests/test_cursor.py +++ b/tests/test_cursor.py @@ -402,7 +402,7 @@ class CursorTests(ConnectingTestCase): @skip_before_postgres(8, 0) def test_scroll_named(self): - cur = self.conn.cursor() + cur = self.conn.cursor('tmp', scrollable=True) cur.execute("select generate_series(0,9)") cur.scroll(2) self.assertEqual(cur.fetchone(), (2,)) @@ -412,8 +412,6 @@ class CursorTests(ConnectingTestCase): self.assertEqual(cur.fetchone(), (8,)) cur.scroll(9, mode='absolute') self.assertEqual(cur.fetchone(), (9,)) - self.assertRaises((IndexError, psycopg2.ProgrammingError), - cur.scroll, 10, mode='absolute') def test_suite():