Fixed #24290 -- Skipped postgres_tests if not running with PostgreSQL.

This commit is contained in:
Tim Graham 2015-02-16 18:10:35 -05:00
parent 3adc5f1ee6
commit 8b39f33d78
5 changed files with 6 additions and 16 deletions

View file

@ -18,8 +18,6 @@ from .models import RangesModel
def skipUnlessPG92(test):
if not connection.vendor == 'postgresql':
return unittest.skip('PostgreSQL required')(test)
PG_VERSION = connection.pg_version
if PG_VERSION < 90200:
return unittest.skip('PostgreSQL >= 9.2 required')(test)