mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-07-31 18:40:09 +03:00
skip a pool test if postgres is older than 8.2
https://travis-ci.org/psycopg/psycopg2/jobs/588421694
This commit is contained in:
parent
11dc2691f4
commit
6e6700b63d
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user