skip a pool test if postgres is older than 8.2

https://travis-ci.org/psycopg/psycopg2/jobs/588421694
This commit is contained in:
Changaco 2019-09-23 17:36:47 +02:00
parent 11dc2691f4
commit 6e6700b63d

View File

@ -27,7 +27,7 @@ import psycopg2.extensions as _ext
import psycopg2.pool
from .testconfig import dsn, dbname
from .testutils import ConnectingTestCase
from .testutils import ConnectingTestCase, skip_before_postgres
class PoolTests(ConnectingTestCase):
@ -202,6 +202,7 @@ class PoolTests(ConnectingTestCase):
self.assertFalse(conn in pool._pool)
self.assertFalse(id(conn) in pool._return_times)
@skip_before_postgres(8, 2)
def test_caching(self):
pool = psycopg2.pool.SimpleConnectionPool(0, 10, dsn, idle_timeout=30)