From 6e6700b63dec86f56c21cdbd0adda8e48f681276 Mon Sep 17 00:00:00 2001 From: Changaco Date: Mon, 23 Sep 2019 17:36:47 +0200 Subject: [PATCH] skip a pool test if postgres is older than 8.2 https://travis-ci.org/psycopg/psycopg2/jobs/588421694 --- tests/test_pool.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_pool.py b/tests/test_pool.py index ca160123..0a5fcd6a 100644 --- a/tests/test_pool.py +++ b/tests/test_pool.py @@ -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)