diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2018-07-24 19:02:13 +0100 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2018-07-24 19:02:13 +0100 |
commit | ba54f1194ad591f96acd5bacdc03524e54f7897b (patch) | |
tree | a75eede5408795dcb592fda9809337fccf02fd39 | |
parent | 43e35db988625dcb32c8fd410e856b6a543f1376 (diff) | |
download | psycopg2-ba54f1194ad591f96acd5bacdc03524e54f7897b.tar.gz |
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.
-rwxr-xr-x | tests/test_cursor.py | 2 | ||||
-rwxr-xr-x | tests/test_with.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_cursor.py b/tests/test_cursor.py index 098fe73..acfa666 100755 --- a/tests/test_cursor.py +++ b/tests/test_cursor.py @@ -443,7 +443,7 @@ class CursorTests(ConnectingTestCase): self.assertEqual([(2,), (3,), (4,)], cur2.fetchmany(3)) self.assertEqual([(5,), (6,), (7,)], cur2.fetchall()) - @skip_before_postgres(8, 0) + @skip_before_postgres(8, 2) def test_named_noop_close(self): cur = self.conn.cursor('test') cur.close() diff --git a/tests/test_with.py b/tests/test_with.py index 29b7e86..1522f05 100755 --- a/tests/test_with.py +++ b/tests/test_with.py @@ -217,7 +217,7 @@ class WithCursorTestCase(WithTestCase): else: self.fail("where is my exception?") - @skip_before_postgres(8, 0) + @skip_before_postgres(8, 2) def test_named_with_noop(self): with self.conn.cursor('named') as cur: pass |