mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-01-31 17:34:08 +03:00
Bump tests for selective closure of named cursor to pg 8.2
Previous versions don't support the features as they don't have the pg_cursors view. But they are too old to care.
This commit is contained in:
parent
43e35db988
commit
ba54f1194a
|
@ -443,7 +443,7 @@ class CursorTests(ConnectingTestCase):
|
||||||
self.assertEqual([(2,), (3,), (4,)], cur2.fetchmany(3))
|
self.assertEqual([(2,), (3,), (4,)], cur2.fetchmany(3))
|
||||||
self.assertEqual([(5,), (6,), (7,)], cur2.fetchall())
|
self.assertEqual([(5,), (6,), (7,)], cur2.fetchall())
|
||||||
|
|
||||||
@skip_before_postgres(8, 0)
|
@skip_before_postgres(8, 2)
|
||||||
def test_named_noop_close(self):
|
def test_named_noop_close(self):
|
||||||
cur = self.conn.cursor('test')
|
cur = self.conn.cursor('test')
|
||||||
cur.close()
|
cur.close()
|
||||||
|
|
|
@ -217,7 +217,7 @@ class WithCursorTestCase(WithTestCase):
|
||||||
else:
|
else:
|
||||||
self.fail("where is my exception?")
|
self.fail("where is my exception?")
|
||||||
|
|
||||||
@skip_before_postgres(8, 0)
|
@skip_before_postgres(8, 2)
|
||||||
def test_named_with_noop(self):
|
def test_named_with_noop(self):
|
||||||
with self.conn.cursor('named') as cur:
|
with self.conn.cursor('named') as cur:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue
Block a user