Skip the tests according to the earliest of libpq built/linked.

This commit is contained in:
Daniele Varrazzo 2017-03-02 17:52:29 +00:00
parent 26bd5df048
commit a5382d7b72

View File

@ -313,7 +313,7 @@ def libpq_version():
import psycopg2 import psycopg2
v = psycopg2.__libpq_version__ v = psycopg2.__libpq_version__
if v >= 90100: if v >= 90100:
v = psycopg2.extensions.libpq_version() v = min(v, psycopg2.extensions.libpq_version())
return v return v